WPSEO_Metabox::display_metabox() public Yoast 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.
- $type(строка)
- The type of object to check.
По умолчанию: post_type
Код WPSEO_Metabox::display_metabox() WPSEO Metabox::display metabox Yoast 16.1.1
public function display_metabox( $identifier = null, $type = 'post_type' ) {
return WPSEO_Utils::is_metabox_active( $identifier, $type );
}