pods_api_get_table_info

The Pods - Custom Content Types and Fields pods api get table info hook.

Description

apply_filters( 'pods_api_get_table_info', (unknown) $info, (unknown) $object_type, (unknown) $object, (string) $name, (unknown) $pod, (unknown) $field, (unknown) $instance ); 

Parameters (7)

0. $info (unknown)
The info.
1. $object_type (unknown)
The object type.
2. $object (unknown)
The object.
3. $name (string)
The name.
4. $pod (unknown)
The pod.
5. $field (unknown)
The field.
6. $instance (unknown)
The this.

Usage

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

Defined (1)

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

/classes/PodsAPI.php  
  1. self::$table_info_cache[ $transient ] = apply_filters( 'pods_api_get_table_info', $info, $object_type, $object, $name, $pod, $field, $this );