WordPress action hook

cmb2_post_search_field_add_find_posts_div

Fired by 4 WordPress plugins, running on 22K+ sites between them.

How to use cmb2_post_search_field_add_find_posts_div

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

functions.php
add_action( 'cmb2_post_search_field_add_find_posts_div', function() {
	// Your code runs here.
}, 10, 1 );

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

4 plugins that fire cmb2_post_search_field_add_find_posts_div

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

  1. MP3 Audio Player icon MP3 Audio Player20,000+ installs do_action( 'cmb2_post_search_field_add_find_posts_div' ) admin/library/cmb2-post-search-field/lib/init.php:81
  2. Glossary icon Glossary2,000+ installs do_action( 'cmb2_post_search_field_add_find_posts_div' ) integrations/CMB_Fields/CMB2_Post_Search_Field.php:70
  3. MediaBlaster icon MediaBlaster200+ installs do_action( 'cmb2_post_search_field_add_find_posts_div' ) lib/cmb2-post-search-field-init.php:68
  4. Awesome Studio icon Awesome Studio10+ installs do_action( 'cmb2_post_search_field_add_find_posts_div' ) monoframe/cmb/extras/post-search-field/cmb2_post_search_field.php:68

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.