acf_untrash_post_type()
Restores an ACF post type from the trash.
No Hooks.
Returns
true|false. True if post was untrashed.
Usage
acf_untrash_post_type( $id );
- $id(int|string)
- The post type ID, key, or name.
Changelog
| Since 6.1 | Introduced. |
acf_untrash_post_type() acf untrash post type code ACF 6.8.8
function acf_untrash_post_type( $id = 0 ) {
return acf_untrash_internal_post_type( $id, 'acf-post-type' );
}