WordPress action hook

kirki_field_init

Defined by Kirki and fired by 7 plugins in total, running on 500K+ sites between them.

How to use kirki_field_init

It's an action: your callback runs at that point and receives 2 arguments. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'kirki_field_init', function( $args, $object ) {
	// Your code runs here.
}, 10, 2 );

Argument names come from Kirki's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

7 plugins that fire kirki_field_init

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Kirki icon Kirki400,000+ installs do_action( 'kirki_field_init', $this->args, $this ) customizer/packages/fields/base/src/Field.php:103
  2. Jupiter X Core icon Jupiter X Core70,000+ installs do_action( 'kirki_field_init', $this->args, $this ) includes/customizer/vendors/kirki/packages/kirki-framework/field/src/Field.php:94
  3. Envo Extra icon Envo Extra20,000+ installs do_action( 'kirki_field_init', $this->args, $this ) include/packages/kirki-framework/field/src/Field.php:93
  4. Futurio Extra icon Futurio Extra10,000+ installs do_action( 'kirki_field_init', $this->args, $this ) inc/framework/kirki-packages/field/src/Field.php:93
  5. Kata Plus icon Kata Plus300+ installs do_action( 'kirki_field_init', $this->args, $this ) includes/vendors/kirki/kirki-packages/field/src/Field.php:97
  6. Home Improvement Companion icon Home Improvement Companion50+ installs do_action( 'kirki_field_init', $this->args, $this ) vendors/kirki/kirki-packages/field/src/Field.php:93
  7. Hill Extension icon Hill Extension10+ installs do_action( 'kirki_field_init', $this->args, $this ) inc/kirki/packages/kirki-framework/field/src/Field.php:93

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.