ACF_Internal_Post_Type::is_post
Returns true if the given params match an ACF post.
Method of the class: ACF_Internal_Post_Type{}
No Hooks.
Returns
true|false.
Usage
$ACF_Internal_Post_Type = new ACF_Internal_Post_Type(); $ACF_Internal_Post_Type->is_post( $post );
- $post(array)
- The post array to check.
Default:false
Changelog
| Since 6.1 | Introduced. |
ACF_Internal_Post_Type::is_post() ACF Internal Post Type::is post code ACF 6.8.8
public function is_post( $post = false ) {
return (
is_array( $post )
&& isset( $post['key'] )
&& isset( $post['title'] )
);
}