PHP Класс WPSEO_Taxonomy_Metabox, wordpress-seo

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( string $taxonomy, stdClass $term ) The constructor.
display ( ) Shows the Yoast SEO metabox for the term.
template_generic_tab ( ) Generic tab.
template_keyword_tab ( ) Keyword tab for enabling analysis of multiple keywords.
traffic_light_svg ( ) Return the SVG for the traffic light in the metabox.

Приватные методы

Метод Описание
get_buy_premium_link ( ) : string Returns a link to activate the Buy Premium tab.
get_buy_premium_section ( ) : WPSEO_Metabox_Section Returns the metabox section for the Premium section.
get_content_meta_section ( ) : WPSEO_Metabox_Section Returns the metabox section for the content analysis.
get_content_sections ( ) : WPSEO_Metabox_Section[] Returns the relevant metabox sections for the current view.
get_settings_meta_section ( ) : WPSEO_Metabox_Section Returns the metabox section for the settings.
get_social_meta_section ( ) : WPSEO_Metabox_Section Returns the metabox section for the social settings.
tax_is_public ( ) Test whether we are on a public taxonomy - no metabox actions needed if we are not Unfortunately we have to hook most everything in before the point where all taxonomies are registered and we know which taxonomy is being requested, so we need to use this check in nearly every hooked in function.

Описание методов

__construct() публичный Метод

The constructor.
public __construct ( string $taxonomy, stdClass $term )
$taxonomy string The taxonomy.
$term stdClass The term.

display() публичный Метод

Shows the Yoast SEO metabox for the term.
public display ( )

template_generic_tab() публичный Метод

Generic tab.

template_keyword_tab() публичный Метод

Keyword tab for enabling analysis of multiple keywords.

traffic_light_svg() публичный Метод

Return the SVG for the traffic light in the metabox.
public traffic_light_svg ( )