acf_get_raw_post_type()
Retrieves a raw ACF CPT.
No Hooks.
Returns
Array|false. The internal post type array.
Usage
acf_get_raw_post_type( $id );
- $id(int|string) (required)
- The post ID.
Changelog
| Since 6.1 | Introduced. |
acf_get_raw_post_type() acf get raw post type code ACF 6.8.8
function acf_get_raw_post_type( $id ) {
return acf_get_raw_internal_post_type( $id, 'acf-post-type' );
}