acf_validate_post_type()
Validates an ACF CPT.
No Hooks.
Returns
Array|true|false.
Usage
acf_validate_post_type( $post_type );
- $post_type(array)
- The ACF post type array.
Default:array()
Changelog
| Since 6.1 | Introduced. |
acf_validate_post_type() acf validate post type code ACF 6.8.8
function acf_validate_post_type( array $post_type = array() ) {
return acf_validate_internal_post_type( $post_type, 'acf-post-type' );
}