acf_third_party::tabify_posttypespublicACF 3.5.1

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

array.

Usage

$acf_third_party = new acf_third_party();
$acf_third_party->tabify_posttypes( $posttypes );
$posttypes(array) (required)
An array of post types supported by tabify.

Changelog

Since 3.5.1 Introduced.

acf_third_party::tabify_posttypes() code ACF 6.8.8

public function tabify_posttypes( $posttypes ) {
	// unset ACF post types
	unset( $posttypes['acf-field-group'] );
	unset( $posttypes['acf-field'] );

	return $posttypes;
}