WordPress action hook

cmb2_before_field_row

Defined by CMB2 and fired by 87 plugins in total, running on 483K+ sites between them.

“Hook before field row begins.”

How to use cmb2_before_field_row

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

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

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

87 plugins that fire cmb2_before_field_row

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

  1. CMB2 icon CMB2300,000+ installs do_action( 'cmb2_before_field_row', $this ) includes/CMB2_Field.php:900
  2. Virtue/Ascend/Pinnacle Toolkit icon Virtue/Ascend/Pinnacle Toolkit30,000+ installs do_action( 'cmb2_before_field_row', $this ) cmb/includes/CMB2_Field.php:897
  3. Interactive Image Map Plugin icon Interactive Image Map Plugin20,000+ installs do_action( 'cmb2_before_field_row', $this ) public/includes/lib/CMB2/includes/CMB2_Field.php:913
  4. MP3 Audio Player icon MP3 Audio Player20,000+ installs do_action( 'cmb2_before_field_row', $this ) admin/library/cmb2/includes/CMB2_Field.php:902
  5. My Private Site icon My Private Site10,000+ installs do_action( 'cmb2_before_field_row', $this ) library/cmb2/includes/CMB2_Field.php:900
  6. NextMove Lite icon NextMove Lite10,000+ installs do_action( 'cmb2_before_field_row', $this ) admin/includes/cmb2/includes/CMB2_Field.php:902
  7. WPGet API icon WPGet API10,000+ installs do_action( 'cmb2_before_field_row', $this ) lib/cmb2/includes/CMB2_Field.php:905
  8. GamiPress icon GamiPress10,000+ installs do_action( 'cmb2_before_field_row', $this ) libraries/cmb2/includes/CMB2_Field.php:900
  9. BA Book Everything icon BA Book Everything10,000+ installs do_action( 'cmb2_before_field_row', $this ) includes/plugins/cmb2/includes/CMB2_Field.php:897
  10. Insert Headers and Footers Code icon Insert Headers and Footers Code6,000+ installs do_action( 'cmb2_before_field_row', $this ) admin/cmb2/includes/CMB2_Field.php:902
  11. Ultimate Addons for SiteOrigin icon Ultimate Addons for SiteOrigin6,000+ installs do_action( 'cmb2_before_field_row', $this ) cmb/includes/CMB2_Field.php:897
  12. AutomatorWP icon AutomatorWP6,000+ installs do_action( 'cmb2_before_field_row', $this ) libraries/cmb2/includes/CMB2_Field.php:900
  13. Cryptocurrency Widgets icon Cryptocurrency Widgets6,000+ installs do_action( 'cmb2_before_field_row', $this ) admin/cmb2/includes/CMB2_Field.php:906
  14. Event Single Page Builder For The Events Calendar icon Event Single Page Builder For The Events Calendar6,000+ installs do_action( 'cmb2_before_field_row', $this ) admin/cmb2/includes/CMB2_Field.php:905
  15. Arconix FAQ icon Arconix FAQ6,000+ installs do_action( 'cmb2_before_field_row', $this ) includes/metabox/includes/CMB2_Field.php:897
  16. Cool Flipbox icon Cool Flipbox5,000+ installs do_action( 'cmb2_before_field_row', $this ) admin/CMB2/includes/CMB2_Field.php:907
  17. Podcast Subscribe Buttons icon Podcast Subscribe Buttons4,000+ installs do_action( 'cmb2_before_field_row', $this ) includes/CMB2/cmb2-plugin/includes/CMB2_Field.php:902
  18. Finale Lite icon Finale Lite3,000+ installs do_action( 'cmb2_before_field_row', $this ) admin/includes/cmb2/includes/CMB2_Field.php:902
  19. DJ-Accessibility icon DJ-Accessibility3,000+ installs do_action( 'cmb2_before_field_row', $this ) includes/cmb2/includes/CMB2_Field.php:897
  20. WPBITS Addons For Elementor Page Builder icon WPBITS Addons For Elementor Page Builder2,000+ installs do_action( 'cmb2_before_field_row', $this ) includes/cmb2/includes/CMB2_Field.php:902
  21. Seamless Donations is Sunset icon Seamless Donations is Sunset2,000+ installs do_action( 'cmb2_before_field_row', $this ) library/cmb2/includes/CMB2_Field.php:902
  22. BNE Testimonials icon BNE Testimonials1,000+ installs do_action( 'cmb2_before_field_row', $this ) includes/lib/cmb2/includes/CMB2_Field.php:897
  23. WP Popup icon WP Popup1,000+ installs do_action( 'cmb2_before_field_row', $this ) includes/CMB2/includes/CMB2_Field.php:902
  24. Dynamic Team Manager icon Dynamic Team Manager900+ installs do_action( 'cmb2_before_field_row', $this ) lib/cmb2/includes/CMB2_Field.php:902
  25. Opal Service icon Opal Service800+ installs do_action( 'cmb2_before_field_row', $this ) inc/vendors/cmb2/libraries/includes/CMB2_Field.php:897
  26. UpStream: a Project Management Plugin for WordPress icon UpStream: a Project Management Plugin for WordPress500+ installs do_action( 'cmb2_before_field_row', $this ) includes/libraries/cmb2/includes/CMB2_Field.php:902
  27. Responsive Testimonials icon Responsive Testimonials500+ installs do_action( 'cmb2_before_field_row', $this ) inc/cmb2/includes/CMB2_Field.php:897
  28. Topic Progression Using Storyline/Captivate for LearnDash icon Topic Progression Using Storyline/Captivate for LearnDash400+ installs do_action( 'cmb2_before_field_row', $this ) CMB2/includes/CMB2_Field.php:902
  29. CRT Addons Builder and Widgets for Elementor icon CRT Addons Builder and Widgets for Elementor300+ installs do_action( 'cmb2_before_field_row', $this ) includes/cmb2/includes/CMB2_Field.php:902
  30. Resume / CV icon Resume / CV300+ installs do_action( 'cmb2_before_field_row', $this ) cmb2/includes/CMB2_Field.php:893
  31. HT Portfolio icon HT Portfolio300+ installs do_action( 'cmb2_before_field_row', $this ) admin/cmb2/includes/CMB2_Field.php:897
  32. FundPress icon FundPress300+ installs do_action( 'cmb2_before_field_row', $this ) inc/vendors/cmb2/includes/CMB2_Field.php:897
  33. MediaBlaster icon MediaBlaster200+ installs do_action( 'cmb2_before_field_row', $this ) lib/cmb2/includes/CMB2_Field.php:902
  34. Dynamic Product Category Grid, Slider for WooCommerce icon Dynamic Product Category Grid, Slider for WooCommerce200+ installs do_action( 'cmb2_before_field_row', $this ) lib/cmb2/includes/CMB2_Field.php:900
  35. CommonsBooking icon CommonsBooking200+ installs do_action( 'cmb2_before_field_row', $this ) vendor-prefixed/cmb2/cmb2/includes/CMB2_Field.php:900
  36. Ultimate Hover Effects icon Ultimate Hover Effects200+ installs do_action( 'cmb2_before_field_row', $this ) admin/cmb2/includes/CMB2_Field.php:893
  37. peLightbox Gallery Slider icon peLightbox Gallery Slider200+ installs do_action( 'cmb2_before_field_row', $this ) admin/src/CMB2/includes/CMB2_Field.php:902
  38. Niso Carousel Slider icon Niso Carousel Slider200+ installs do_action( 'cmb2_before_field_row', $this ) admin/src/cmb2/includes/CMB2_Field.php:902
  39. ShortLinks Pro icon ShortLinks Pro100+ installs do_action( 'cmb2_before_field_row', $this ) libraries/cmb2/includes/CMB2_Field.php:900
  40. glomex oEmbed icon glomex oEmbed100+ installs do_action( 'cmb2_before_field_row', $this ) vendor-prod/cmb2/includes/CMB2_Field.php:902
  41. MK Google Directions icon MK Google Directions100+ installs do_action( 'cmb2_before_field_row', $this ) lib/cmb2/includes/CMB2_Field.php:897
  42. WP Cloudflare GeoIP Redirect icon WP Cloudflare GeoIP Redirect100+ installs do_action( 'cmb2_before_field_row', $this ) cmb2/includes/CMB2_Field.php:897
  43. W3SCloud Contact Form 7 to Zoho CRM icon W3SCloud Contact Form 7 to Zoho CRM60+ installs do_action( 'cmb2_before_field_row', $this ) includes/cmb2-framework/includes/CMB2_Field.php:896
  44. Arconix Portfolio icon Arconix Portfolio50+ installs do_action( 'cmb2_before_field_row', $this ) includes/metabox/includes/CMB2_Field.php:897
  45. WPBMB Entrez icon WPBMB Entrez50+ installs do_action( 'cmb2_before_field_row', $this ) includes/cmb2/includes/CMB2_Field.php:896
  46. Flows icon Flows50+ installs do_action( 'cmb2_before_field_row', $this ) CMB2/includes/CMB2_Field.php:902
  47. SEO Landing Page Generator icon SEO Landing Page Generator50+ installs do_action( 'cmb2_before_field_row', $this ) admin/plugins/cmb2/includes/CMB2_Field.php:897
  48. Tour Operator icon Tour Operator30+ installs do_action( 'cmb2_before_field_row', $this ) plugins/cmb2/includes/CMB2_Field.php:903
  49. BBForms icon BBForms20+ installs do_action( 'cmb2_before_field_row', $this ) libraries/cmb2/includes/CMB2_Field.php:900
  50. WhatAvatar icon WhatAvatar20+ installs do_action( 'cmb2_before_field_row', $this ) libraries/cmb2/includes/CMB2_Field.php:900
  51. Scheidungskostenrechner icon Scheidungskostenrechner10+ installs do_action( 'cmb2_before_field_row', $this ) includes/lib/cmb2/includes/CMB2_Field.php:902
  52. Cryptocurrency icon Cryptocurrency10+ installs do_action( 'cmb2_before_field_row', $this ) cmb2/includes/CMB2_Field.php:897
  53. Iandé icon Iandé10+ installs do_action( 'cmb2_before_field_row', $this ) includes/cmb2/core-plugin/includes/CMB2_Field.php:902
  54. Pricex Lite icon Pricex Lite10+ installs do_action( 'cmb2_before_field_row', $this ) inc/cmb2/includes/CMB2_Field.php:897
  55. NutritionWP icon NutritionWP10+ installs do_action( 'cmb2_before_field_row', $this ) admin/CMB2/includes/CMB2_Field.php:897
  56. Automatic Actions for LearnDash icon Automatic Actions for LearnDash10+ installs do_action( 'cmb2_before_field_row', $this ) includes/cmb2/includes/CMB2_Field.php:902
  57. SEO Content Randomizer icon SEO Content Randomizer10+ installs do_action( 'cmb2_before_field_row', $this ) admin/plugins/cmb2/includes/CMB2_Field.php:897
  58. W3SCloud Contact Form 7 to Bigin icon W3SCloud Contact Form 7 to Bigin10+ installs do_action( 'cmb2_before_field_row', $this ) includes/CMB2-w3sc/includes/CMB2_Field.php:902
  59. Disable Fast Velocity Minify icon Disable Fast Velocity Minify10+ installs do_action( 'cmb2_before_field_row', $this ) includes/cmb2/includes/CMB2_Field.php:897
  60. Palto Carousel icon Palto Carousel10+ installs do_action( 'cmb2_before_field_row', $this ) admin/src/cmb2/includes/CMB2_Field.php:897
  61. Haru Vidi icon Haru Vidi10+ installs do_action( 'cmb2_before_field_row', $this ) includes/libraries/cmb2/includes/CMB2_Field.php:897
  62. THRON icon THRON10+ installs do_action( 'cmb2_before_field_row', $this ) includes/cmb2/includes/CMB2_Field.php:897
  63. Smart Grid icon Smart Grid10+ installs do_action( 'cmb2_before_field_row', $this ) lib/includes/CMB2_Field.php:893
  64. Coupons icon Coupons10+ installs do_action( 'cmb2_before_field_row', $this ) plugins/cmb2/includes/CMB2_Field.php:902
  65. HT Event icon HT Event10+ installs do_action( 'cmb2_before_field_row', $this ) admin/cmb2/includes/CMB2_Field.php:897
  66. Mega Ad icon Mega Ad10+ installs do_action( 'cmb2_before_field_row', $this ) inc/cmb2/includes/CMB2_Field.php:902
  67. Arconix Testimonials icon Arconix Testimonials10+ installs do_action( 'cmb2_before_field_row', $this ) includes/metabox/includes/CMB2_Field.php:897
  68. Property Management Software icon Property Management Software10+ installs do_action( 'cmb2_before_field_row', $this ) includes/libraries/cmb2/includes/CMB2_Field.php:897
  69. Coderlift Product Page Booster icon Coderlift Product Page BoosterFewer than 10 installs do_action( 'cmb2_before_field_row', $this ) cmb2/includes/CMB2_Field.php:893
  70. Amazing Testimonial Slider icon Amazing Testimonial SliderFewer than 10 installs do_action( 'cmb2_before_field_row', $this ) cmb/includes/CMB2_Field.php:902
  71. cubicFUSION Admin Enhancer icon cubicFUSION Admin EnhancerFewer than 10 installs do_action( 'cmb2_before_field_row', $this ) inc/cmb2/includes/CMB2_Field.php:902
  72. Beem SMS icon Beem SMSFewer than 10 installs do_action( 'cmb2_before_field_row', $this ) library/cmb2/includes/CMB2_Field.php:902
  73. Our Team icon Our TeamFewer than 10 installs do_action( 'cmb2_before_field_row', $this ) lib/metaboxes/includes/CMB2_Field.php:897
  74. FavCRM for WooCommerce icon FavCRM for WooCommerceFewer than 10 installs do_action( 'cmb2_before_field_row', $this ) includes/cmb2/includes/CMB2_Field.php:902
  75. SPEC Theme Options icon SPEC Theme OptionsFewer than 10 installs do_action( 'cmb2_before_field_row', $this ) extensions/cmb2/includes/CMB2_Field.php:897
  76. Additional Order Costs for WooCommerce icon Additional Order Costs for WooCommerceFewer than 10 installs do_action( 'cmb2_before_field_row', $this ) cmb2/includes/CMB2_Field.php:897
  77. RubSum icon RubSumFewer than 10 installs do_action( 'cmb2_before_field_row', $this ) metabox/includes/CMB2_Field.php:896
  78. School Governor Block icon School Governor BlockFewer than 10 installs do_action( 'cmb2_before_field_row', $this ) CMB2/includes/CMB2_Field.php:897
  79. Autocomplete NextGenAPI Address icon Autocomplete NextGenAPI AddressFewer than 10 installs do_action( 'cmb2_before_field_row', $this ) cmb2/includes/CMB2_Field.php:897
  80. Puchi A/B Testing icon Puchi A/B TestingFewer than 10 installs do_action( 'cmb2_before_field_row', $this ) includes/libs/cmb2-metabox/includes/CMB2_Field.php:896
  81. Casia Counter Number icon Casia Counter NumberFewer than 10 installs do_action( 'cmb2_before_field_row', $this ) cmb2/includes/CMB2_Field.php:896
  82. Awesome Service Box icon Awesome Service BoxFewer than 10 installs do_action( 'cmb2_before_field_row', $this ) admin/cmb2/includes/CMB2_Field.php:893
  83. Home animation slider icon Home animation sliderFewer than 10 installs do_action( 'cmb2_before_field_row', $this ) admin/src/cmb2/includes/CMB2_Field.php:893
  84. Narnoo Operator icon Narnoo OperatorFewer than 10 installs do_action( 'cmb2_before_field_row', $this ) libs/CMB2/includes/CMB2_Field.php:893
  85. Gowowo Delivery Elementor icon Gowowo Delivery ElementorFewer than 10 installs do_action( 'cmb2_before_field_row', $this ) inc/Base/Library/CMB2/includes/CMB2_Field.php:902
  86. Student Feedback icon Student FeedbackFewer than 10 installs do_action( 'cmb2_before_field_row', $this ) metabox/includes/CMB2_Field.php:902
  87. Membros Details Slide icon Membros Details SlideFewer than 10 installs do_action( 'cmb2_before_field_row', $this ) metabox/includes/CMB2_Field.php:902

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.