WordPress filter hook

cmb_std_filter

Fired by 5 WordPress plugins, running on 330+ sites between them.

How to use cmb_std_filter

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

functions.php
add_filter( 'cmb_std_filter', function( $field, $field2, $object_id, $object_type ) {
	// Change $field here.
	return $field;
}, 10, 4 );

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

5 plugins that fire cmb_std_filter

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

  1. Meet My Team icon Meet My Team300+ installs apply_filters( 'cmb_std_filter', $field['default'], $field, $object_id, $object_type ) admin/includes/Custom-Metaboxes-and-Fields/init.php:428
  2. Typhoon Slider icon Typhoon Slider10+ installs apply_filters( 'cmb_std_filter', $field['default'], $field, $object_id, $object_type ) CMF/CMF/init.php:393
  3. WP W3D plugin icon WP W3D plugin10+ installs apply_filters( 'cmb_std_filter', $field['default'], $field, $object_id, $object_type ) includes/metabox/init.php:394
  4. Sneakers icon Sneakers10+ installs apply_filters( 'cmb_std_filter', $field['default'], $field, $object_id, $object_type ) init.php:393
  5. Flaunt Your Clients icon Flaunt Your ClientsFewer than 10 installs apply_filters( 'cmb_std_filter', $field['default'], $field, $object_id, $object_type ) lib/metabox/init.php:393

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.