WordPress filter hook
cx_post_meta/custom_box
Fired by 4 WordPress plugins, running on 12K+ sites between them.
“Filter custom metabox output. Prevent from showing main box, if user output passed”
How to use cx_post_meta/custom_box
It's a filter: your callback receives the value and 2 more arguments, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'cx_post_meta/custom_box', function( $value, $post, $metabox ) {
// Change $value here.
return $value;
}, 10, 3 );Argument names come from LA-Studio Element Kit for Elementor's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
4 plugins that fire cx_post_meta/custom_box
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
LA-Studio Element Kit for Elementor10,000+ installs
apply_filters( 'cx_post_meta/custom_box', false, $post, $metabox )includes/framework/post-meta/post-meta.php:276 -
Widgets for WooCommerce Products on Elementor2,000+ installs
apply_filters( 'cx_post_meta/custom_box', false, $post, $metabox )framework/post-meta/cherry-x-post-meta.php:272 -
Custom Builder for Elementor and WooCommerce10+ installs
apply_filters( 'cx_post_meta/custom_box', false, $post, $metabox )framework/post-meta/cherry-x-post-meta.php:272 -
Onex Custom Woo Builder10+ installs
apply_filters( 'cx_post_meta/custom_box', false, $post, $metabox )framework/post-meta/cherry-x-post-meta.php:272
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.