ACF_Internal_Post_Type::is_post
Returns true if the given params match an ACF post.
Метод класса: ACF_Internal_Post_Type{}
Хуков нет.
Возвращает
boolean.
Использование
$ACF_Internal_Post_Type = new ACF_Internal_Post_Type(); $ACF_Internal_Post_Type->is_post( $post );
- $post(массив)
- The post array to check.
По умолчанию:false
Список изменений
| С версии 6.1 | Введена. |
Код ACF_Internal_Post_Type::is_post() ACF Internal Post Type::is post ACF 6.8.11
public function is_post( $post = false ) {
return (
is_array( $post )
&& isset( $post['key'] )
&& isset( $post['title'] )
);
}