WPSEO_Metabox::display_metabox()publicYoast 1.0

Determines whether the metabox should be shown for the passed identifier.

By default the check is done for post types, but can also be used for taxonomies.

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

Хуков нет.

Возвращает

true|false. Whether or not the metabox should be displayed.

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

$WPSEO_Metabox = new WPSEO_Metabox();
$WPSEO_Metabox->display_metabox( $identifier, $type );
$identifier(строка|null)
The identifier to check.
По умолчанию: null
$type(строка)
The type of object to check.
По умолчанию: post_type

Код WPSEO_Metabox::display_metabox() Yoast 22.4

public function display_metabox( $identifier = null, $type = 'post_type' ) {
	return WPSEO_Utils::is_metabox_active( $identifier, $type );
}