cmb2_get_metabox_form

The Maps Builder cmb2 get metabox form hook.

Description

apply_filters( 'cmb2_get_metabox_form', (unknown) $form, (unknown) $object_id, (unknown) $cmb ); 

Parameters (3)

0. $form (unknown)
The form.
1. $object_id (unknown)
The object id.
2. $cmb (unknown)
The cmb.

Usage

To run the hook, copy the example below.
  1. $form = apply_filters( 'cmb2_get_metabox_form', $form, $object_id, $cmb ); 
  2.  
  3. if ( !empty( $form ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the cmb2_get_metabox_form callback 
  2. function filter_cmb2_get_metabox_form( $form, $object_id, $cmb ) { 
  3. // make filter magic happen here... 
  4. return $form
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'cmb2_get_metabox_form', 'filter_cmb2_get_metabox_form', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'cmb2_get_metabox_form', 'filter_cmb2_get_metabox_form', 10, 3 ); 

Defined (2)

The filter is defined in the following location(s).

/vendor/wordimpress/maps-builder-core/includes/libraries/metabox/includes/helper-functions.php  
  1. return apply_filters( 'cmb2_get_metabox_form', $form, $object_id, $cmb ); 
/includes/libraries/metabox/includes/helper-functions.php  
  1. return apply_filters( 'cmb2_get_metabox_form', $form, $object_id, $cmb );