rwmb_<type>_html

The Evolved rwmb type html hook.

Description

apply_filters( 'rwmb_<type>_html', (unknown) $input_html, (unknown) $field, (unknown) $meta_data ); 

Parameters (3)

0. $input_html (unknown)
The input html.
1. $field (unknown)
The field.
2. $meta_data (unknown)
The meta data.

Usage

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

Defined (2)

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

/meta-box/inc/classes/meta-box.php  
  1. $input_html = apply_filters( "rwmb_{$type}_html", $input_html, $field, $meta_data ); 
  1. $field_html = apply_filters( "rwmb_{$type}_html", $field_html, $field, $meta );