acf_is_post_type_key()
Returns true if the given identifier is an ACF CPT key.
No Hooks.
Returns
true|false.
Usage
acf_is_post_type_key( $id );
- $id(string) (required)
- The identifier.
Changelog
| Since 6.1 | Introduced. |
acf_is_post_type_key() acf is post type key code ACF 6.8.8
function acf_is_post_type_key( $id ) {
return acf_is_internal_post_type_key( $id, 'acf-post-type' );
}