WordPress filter hook

kirki_output_property_classnames

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

How to use kirki_output_property_classnames

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'kirki_output_property_classnames', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

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_output_property_classnames

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

  1. Kirki icon Kirki400,000+ installs apply_filters( 'kirki_output_property_classnames', [ 'font-family' => '\Kirki\Module\CSS\Property\Font_Family', 'background-image' => '\Kirki\Module\CSS\Property\Background_Image', 'background-position' => '\Kirki\Module\CSS\Property\Background_Position', ] ) customizer/packages/modules/css/src/CSS/Output.php:337
  2. Jupiter X Core icon Jupiter X Core70,000+ installs apply_filters( 'kirki_output_property_classnames', [ 'font-family' => '\Kirki\Module\CSS\Property\Font_Family', 'background-image' => '\Kirki\Module\CSS\Property\Background_Image', 'background-position' => '\Kirki\Module\CSS\Property\Background_Position', ] ) includes/customizer/vendors/kirki/packages/kirki-framework/module-css/src/CSS/Output.php:337
  3. Envo Extra icon Envo Extra20,000+ installs apply_filters( 'kirki_output_property_classnames', [ 'font-family' => '\Kirki\Module\CSS\Property\Font_Family', 'background-image' => '\Kirki\Module\CSS\Property\Background_Image', 'background-position' => '\Kirki\Module\CSS\Property\Background_Position', ] ) include/packages/kirki-framework/module-css/src/CSS/Output.php:337
  4. Futurio Extra icon Futurio Extra10,000+ installs apply_filters( 'kirki_output_property_classnames', [ 'font-family' => '\Kirki\Module\CSS\Property\Font_Family', 'background-image' => '\Kirki\Module\CSS\Property\Background_Image', 'background-position' => '\Kirki\Module\CSS\Property\Background_Position', ] ) inc/framework/kirki-packages/module-css/src/CSS/Output.php:337
  5. Kata Plus icon Kata Plus300+ installs apply_filters( 'kirki_output_property_classnames', [ 'font-family' => '\Kirki\Module\CSS\Property\Font_Family', 'background-image' => '\Kirki\Module\CSS\Property\Background_Image', 'background-position' => '\Kirki\Module\CSS\Property\Background_Position', ] ) includes/vendors/kirki/kirki-packages/module-css/src/CSS/Output.php:337
  6. Home Improvement Companion icon Home Improvement Companion50+ installs apply_filters( 'kirki_output_property_classnames', [ 'font-family' => '\Kirki\Module\CSS\Property\Font_Family', 'background-image' => '\Kirki\Module\CSS\Property\Background_Image', 'background-position' => '\Kirki\Module\CSS\Property\Background_Position', ] ) vendors/kirki/kirki-packages/module-css/src/CSS/Output.php:337
  7. Hill Extension icon Hill Extension10+ installs apply_filters( 'kirki_output_property_classnames', [ 'font-family' => '\Kirki\Module\CSS\Property\Font_Family', 'background-image' => '\Kirki\Module\CSS\Property\Background_Image', 'background-position' => '\Kirki\Module\CSS\Property\Background_Position', ] ) inc/kirki/packages/kirki-framework/module-css/src/CSS/Output.php:337

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.