cmb_meta_boxes

Include and setup custom metaboxes and fields.

Description

apply_filters( 'cmb_meta_boxes', (unknown) $meta_boxes ); 

Parameters (1)

0. $meta_boxes (unknown)
The meta boxes.

Usage

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

Defined (1)

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

/admin/includes/CMBF/init.php  
  1. $meta_boxes = apply_filters( 'cmb_meta_boxes', $meta_boxes );