pods_api_get_table_info_default_post_status

Default Post Status to query for.

Description

apply_filters( 'pods_api_get_table_info_default_post_status', $array, (unknown) $post_type, (unknown) $info, (unknown) $object_type, (unknown) $object, (string) $name, (unknown) $pod, (unknown) $field ); 

Use to change default post status from publish to any other status or statuses.

Parameters (8)

0. $array
The array.
1. $post_type (unknown)
The post type.
2. $info (unknown)
The info.
3. $object_type (unknown)
The object type.
4. $object (unknown)
The object.
5. $name (string)
The name.
6. $pod (unknown)
The pod.
7. $field (unknown)
The field.

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'pods_api_get_table_info_default_post_status', $array, $post_type, $info, $object_type, $object, $name, $pod, $field ); 
  2.  
  3. if ( !empty( $array ) ) { 
  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_default_post_status callback 
  2. function filter_pods_api_get_table_info_default_post_status( $array, $post_type, $info, $object_type, $object, $name, $pod, $field ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'pods_api_get_table_info_default_post_status', 'filter_pods_api_get_table_info_default_post_status', 10, 8 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'pods_api_get_table_info_default_post_status', 'filter_pods_api_get_table_info_default_post_status', 10, 8 ); 

Defined (1)

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

/classes/PodsAPI.php  
  1. $post_status = apply_filters( 'pods_api_get_table_info_default_post_status', array( 'publish' ), $post_type, $info, $object_type, $object, $name, $pod, $field );