acf_is_post_type()
Returns true if the given params match an ACF post type.
No Hooks.
Returns
true|false.
Usage
acf_is_post_type( $post_type );
- $post_type(array) (required)
- The ACF post type array.
Changelog
| Since 6.1 | Introduced. |
acf_is_post_type() acf is post type code ACF 6.8.8
function acf_is_post_type( $post_type ) {
return acf_is_internal_post_type( $post_type, 'acf-post-type' );
}