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 );
The identifier to check.
По умолчанию: null
The type of object to check.
По умолчанию: post_type

Код WPSEO_Metabox::display_metabox() Yoast 19.10

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