acf_get_post_stati()
Function acf_get_post_stati()
Returns an array of post status names.
Hooks from the function
Returns
Array. A list of post status names.
Usage
acf_get_post_stati( $args );
- $args(array)
- An array of key => value arguments to match against the post status objects.
Default:empty array
Changelog
| Since 6.1.0 | Introduced. |
acf_get_post_stati() acf get post stati code ACF 6.8.8
function acf_get_post_stati( $args = array() ) {
$args['internal'] = false;
$post_statuses = get_post_stati( $args );
unset( $post_statuses['acf-disabled'] );
$post_statuses = (array) apply_filters( 'acf/get_post_stati', $post_statuses, $args );
return $post_statuses;
}