acf_third_party::tabify_posttypes
tabify_posttypes
This function removes ACF post types from the tabify edit screen (post type selection sidebar)
Method of the class: acf_third_party{}
No Hooks.
Returns
$post_id. (int)
Usage
$acf_third_party = new acf_third_party(); $acf_third_party->tabify_posttypes( $posttypes );
- $posttypes(required)
- .
Changelog
| Since 3.5.1 | Introduced. |
acf_third_party::tabify_posttypes() acf third party::tabify posttypes code ACF 6.0.4
function tabify_posttypes( $posttypes ) {
// unset
unset( $posttypes['acf-field-group'] );
unset( $posttypes['acf-field'] );
// return
return $posttypes;
}