acf_get_post_stati()
Function acf_get_post_stati()
Returns an array of post status names.
Хуки из функции
Возвращает
Массив. A list of post status names.
Использование
acf_get_post_stati( $args );
- $args(массив)
- An array of key => value arguments to match against the post status objects.
По умолчанию:empty array
Список изменений
| С версии 6.1.0 | Введена. |
Код acf_get_post_stati() acf get post stati ACF 6.4.2
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;
}