pods_meta_<function>

The Pods - Custom Content Types and Fields pods meta function hook.

Description

apply_filters( 'pods_meta_<function>', (unknown) $form_fields ); 

Parameters (1)

0. $form_fields (unknown)
The form fields.

Usage

To run the hook, copy the example below.
  1. $form_fields = apply_filters( 'pods_meta_{$function}', $form_fields ); 
  2.  
  3. if ( !empty( $form_fields ) ) { 
  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_<function> callback 
  2. function filter_pods_meta_function( $form_fields ) { 
  3. // make filter magic happen here... 
  4. return $form_fields
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( "pods_meta_{$function}", 'filter_pods_meta_function', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( "pods_meta_{$function}", 'filter_pods_meta_function', 10, 1 ); 

Defined (2)

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

/classes/PodsMeta.php  
  1. $form_fields = apply_filters( 'pods_meta_' . __FUNCTION__, $form_fields ); 
  1. $form_fields = apply_filters( 'pods_meta_' . __FUNCTION__, $form_fields );