pods_meta_default_box_title

Filter the title of the Pods Metabox In The Post Editor.

Description

apply_filters( 'pods_meta_default_box_title', (unknown) $title, (unknown) $pod, (unknown) $fields, (unknown) $pod_api_pod_data_type, (unknown) $pod_pod ); 

Parameters (5)

0. $title (unknown)
The title.
1. $pod (unknown)
The pod.
2. $fields (unknown)
The fields.
3. $pod_api_pod_data_type (unknown)
The pod api pod data type.
4. $pod_pod (unknown)
The pod pod.

Usage

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

Defined (3)

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

/ui/admin/view.php  
  1. echo apply_filters( 'pods_meta_default_box_title', $title, $pod, $fields, $pod->api->pod_data[ 'type' ], $pod->pod ); 
/ui/admin/form.php  
  1. echo apply_filters( 'pods_meta_default_box_title', $title, $pod, $fields, $pod->api->pod_data[ 'type' ], $pod->pod ); 
/classes/PodsMeta.php  
  1. 'label' => apply_filters( 'pods_meta_default_box_title', __( 'More Fields', 'pods' ), $pod, $fields, $type, $name ),