acf_third_party::tabify_posttypes()publicACF 3.5.1

tabify_posttypes

This function removes ACF post types from the tabify edit screen (post type selection sidebar)

Метод класса: acf_third_party{}

Хуков нет.

Возвращает

$post_id. (int)

Использование

$acf_third_party = new acf_third_party();
$acf_third_party->tabify_posttypes( $posttypes );
$posttypes (обязательный)
-

Список изменений

С версии 3.5.1 Введена.

Код acf_third_party::tabify_posttypes() ACF 6.0.4

function tabify_posttypes( $posttypes ) {

	// unset
	unset( $posttypes['acf-field-group'] );
	unset( $posttypes['acf-field'] );

	// return
	return $posttypes;
}