WordPress filter hook
kirki_postmessage_script
Defined by Kirki and fired by 12 plugins in total, running on 501K+ sites between them.
How to use kirki_postmessage_script
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_postmessage_script', function( $script ) {
// Change $script here.
return $script;
}, 10, 1 );Argument names come from Front Page Builder's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
12 plugins that fire kirki_postmessage_script
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Kirki400,000+ installs
apply_filters( 'kirki_postmessage_script', false )customizer/packages/modules/postmessage/src/Postmessage.php:150 -
Jupiter X Core70,000+ installs
apply_filters( 'kirki_postmessage_script', false )includes/customizer/vendors/kirki/packages/kirki-framework/module-postmessage/src/Postmessage.php:149 -
Envo Extra20,000+ installs
apply_filters( 'kirki_postmessage_script', false )include/packages/kirki-framework/module-postmessage/src/Postmessage.php:117 -
Futurio Extra10,000+ installs
apply_filters( 'kirki_postmessage_script', false )inc/framework/kirki-packages/module-postmessage/src/Postmessage.php:117 -
Kata Plus300+ installs
apply_filters( 'kirki_postmessage_script', false )includes/vendors/kirki/kirki-packages/module-postmessage/src/Postmessage.php:121 -
Finest Floating Cart for WooCommerce100+ installs
apply_filters( 'kirki_postmessage_script', false )lib/modules/postmessage/class-kirki-modules-postmessage.php:74 -
Front Page Builder60+ installs
apply_filters( 'kirki_postmessage_script', $this->script )include/framework/modules/postmessage/class-kirki-modules-postmessage.php:81 -
Home Improvement Companion50+ installs
apply_filters( 'kirki_postmessage_script', false )vendors/kirki/kirki-packages/module-postmessage/src/Postmessage.php:117 -
Hill Extension10+ installs
apply_filters( 'kirki_postmessage_script', false )inc/kirki/packages/kirki-framework/module-postmessage/src/Postmessage.php:117 -
Realty Pack Core10+ installs
apply_filters( 'kirki_postmessage_script', $this->script )app/kirki/modules/postmessage/class-kirki-modules-postmessage.php:81 -
Azeen CoreFewer than 10 installs
apply_filters( 'kirki_postmessage_script', $this->script )inc/kirki/modules/postmessage/class-kirki-modules-postmessage.php:81 -
Easy Custom CursorFewer than 10 installs
apply_filters( 'kirki_postmessage_script', false )lib/modules/postmessage/class-kirki-modules-postmessage.php:74
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.