acf/get_post_stati
Usage
add_filter( 'acf/get_post_stati', 'wp_kama_acf_get_post_stati_filter', 10, 2 );
/**
* Function for `acf/get_post_stati` filter-hook.
*
* @param $post_statuses
* @param $args
*
* @return
*/
function wp_kama_acf_get_post_stati_filter( $post_statuses, $args ){
// filter...
return $post_statuses;
}
- $post_statuses
- -
- $args
- -
Where the hook is called
acf/get_post_stati
acf/includes/api/api-helpers.php 577
$post_statuses = (array) apply_filters( 'acf/get_post_stati', $post_statuses, $args );