WordPress filter hook
kirki_output_control_classnames
Defined by Kirki and fired by 9 plugins in total, running on 500K+ sites between them.
How to use kirki_output_control_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:
add_filter( 'kirki_output_control_classnames', function( $default_classnames ) {
// Change $default_classnames here.
return $default_classnames;
}, 10, 1 );Argument names come from Finest Floating Cart for WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
9 plugins that fire kirki_output_control_classnames
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Kirki400,000+ installs
apply_filters( 'kirki_output_control_classnames', [] )customizer/packages/modules/css/src/CSS/Generator.php:173 -
Jupiter X Core70,000+ installs
apply_filters( 'kirki_output_control_classnames', [] )includes/customizer/vendors/kirki/packages/kirki-framework/module-css/src/CSS/Generator.php:173 -
Envo Extra20,000+ installs
apply_filters( 'kirki_output_control_classnames', [] )include/packages/kirki-framework/module-css/src/CSS/Generator.php:173 -
Futurio Extra10,000+ installs
apply_filters( 'kirki_output_control_classnames', [] )inc/framework/kirki-packages/module-css/src/CSS/Generator.php:173 -
Kata Plus300+ installs
apply_filters( 'kirki_output_control_classnames', [] )includes/vendors/kirki/kirki-packages/module-css/src/CSS/Generator.php:173 -
Finest Floating Cart for WooCommerce100+ installs
apply_filters( 'kirki_output_control_classnames', $default_classnames )lib/modules/css/class-kirki-modules-css-generator.php:162 -
Home Improvement Companion50+ installs
apply_filters( 'kirki_output_control_classnames', [] )vendors/kirki/kirki-packages/module-css/src/CSS/Generator.php:173 -
Hill Extension10+ installs
apply_filters( 'kirki_output_control_classnames', [] )inc/kirki/packages/kirki-framework/module-css/src/CSS/Generator.php:173 -
Easy Custom CursorFewer than 10 installs
apply_filters( 'kirki_output_control_classnames', $default_classnames )lib/modules/css/class-kirki-modules-css-generator.php:162
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.