WordPress filter hook

cmb_default_filter

Fired by 36 WordPress plugins, running on 7,360+ sites between them.

How to use cmb_default_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_default_filter', function( $args, $args2, $object_type, $object_type2 ) {
	// Change $args here.
	return $args;
}, 10, 4 );

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

36 plugins that fire cmb_default_filter

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

  1. Arconix FAQ icon Arconix FAQ6,000+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) includes/metabox/helpers/cmb_Meta_Box_field.php:447
  2. Meet My Team icon Meet My Team300+ installs apply_filters( 'cmb_default_filter', $field['default'], $field, $object_id, $object_type ) admin/includes/Custom-Metaboxes-and-Fields/init.php:426
  3. Flip Box Carousel icon Flip Box Carousel200+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) helpers/cmb_Meta_Box_field.php:447
  4. JP Students Result Management System icon JP Students Result Management System100+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) boxes/helpers/cmb_Meta_Box_field.php:447
  5. Easy Heads Up Bar icon Easy Heads Up Bar100+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) lib/cmb/helpers/cmb_Meta_Box_field.php:447
  6. Responsive slider / slideshow icon Responsive slider / slideshow100+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) inc/metaboxes/helpers/cmb_Meta_Box_field.php:447
  7. Hoo Hreflang Tags icon Hoo Hreflang Tags100+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) includes/metabox/helpers/cmb_Meta_Box_field.php:447
  8. Arconix Portfolio icon Arconix Portfolio50+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) includes/metabox/helpers/cmb_Meta_Box_field.php:447
  9. Suscriptflech icon Suscriptflech50+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) admin/includes/custom-metaboxes/helpers/cmb_Meta_Box_field.php:447
  10. JP Students Exam Admit Card Generator icon JP Students Exam Admit Card Generator50+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) includes/boxes/helpers/cmb_Meta_Box_field.php:447
  11. Infinite Slider icon Infinite Slider30+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) public/includes/cmb/helpers/cmb_Meta_Box_field.php:447
  12. WP Quick Maintenance icon WP Quick Maintenance30+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) metabox/helpers/cmb_Meta_Box_field.php:447
  13. BuddyPress Profile Tabs icon BuddyPress Profile Tabs30+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) admin/includes/CMBF/helpers/cmb_Meta_Box_field.php:447
  14. Better Admin Help Tabs icon Better Admin Help Tabs30+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) cmbclass/helpers/cmb_Meta_Box_field.php:447
  15. Typhoon Slider icon Typhoon Slider10+ installs apply_filters( 'cmb_default_filter', $field['default'], $field, $object_id, $object_type ) CMF/CMF/init.php:391
  16. Landing Page Rockstar icon Landing Page Rockstar10+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) metabox/helpers/cmb_Meta_Box_field.php:465
  17. Pronosticos Apuestas TAP icon Pronosticos Apuestas TAP10+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) admin/includes/cmb/helpers/cmb_Meta_Box_field.php:447
  18. Deactivate WordPress Users icon Deactivate WordPress Users10+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) lib/metabox/helpers/cmb_Meta_Box_field.php:447
  19. Genesis Staff Bio Grid icon Genesis Staff Bio Grid10+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) lib/metabox/helpers/cmb_Meta_Box_field.php:447
  20. Ruven Themes: Post Formats UI icon Ruven Themes: Post Formats UI10+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) includes/cmb/helpers/cmb_Meta_Box_field.php:447
  21. TallyKit icon TallyKit10+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) acoc/vandors/cmb/helpers/cmb_Meta_Box_field.php:447
  22. WPB Circliful icon WPB Circliful10+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) lib/helpers/cmb_Meta_Box_field.php:447
  23. WP W3D plugin icon WP W3D plugin10+ installs apply_filters( 'cmb_default_filter', $field['default'], $field, $object_id, $object_type ) includes/metabox/init.php:392
  24. Resource Review icon Resource Review10+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) includes/metabox/helpers/cmb_Meta_Box_field.php:447
  25. Promociones TAP icon Promociones TAP10+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) admin/includes/cmb/helpers/cmb_Meta_Box_field.php:447
  26. Maxi BG icon Maxi BG10+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) lib/cmb/helpers/cmb_Meta_Box_field.php:447
  27. Limit Characters in Title icon Limit Characters in Title10+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) metabox/helpers/cmb_Meta_Box_field.php:447
  28. Ketchup Coupons icon Ketchup Coupons10+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) includes/metaboxes/helpers/cmb_Meta_Box_field.php:447
  29. iThemes Exchange icon iThemes Exchange10+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) lib/metabox/helpers/cmb_Meta_Box_field.php:447
  30. WF Popup Menu icon WF Popup Menu10+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) lib/helpers/cmb_Meta_Box_field.php:447
  31. Sneakers icon Sneakers10+ installs apply_filters( 'cmb_default_filter', $field['default'], $field, $object_id, $object_type ) init.php:391
  32. Give It Away Now! icon Give It Away Now!10+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) includes/metabox/helpers/cmb_Meta_Box_field.php:437
  33. Arconix Testimonials icon Arconix Testimonials10+ installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) includes/metabox/helpers/cmb_Meta_Box_field.php:447
  34. Projects by Parseh icon Projects by ParsehFewer than 10 installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) metabox/helpers/cmb_Meta_Box_field.php:447
  35. Sanchari Testimonial icon Sanchari TestimonialFewer than 10 installs apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ) inc/cmb/helpers/cmb_Meta_Box_field.php:447
  36. Flaunt Your Clients icon Flaunt Your ClientsFewer than 10 installs apply_filters( 'cmb_default_filter', $field['default'], $field, $object_id, $object_type ) lib/metabox/init.php:391

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.