PHP Class WPSEO_Taxonomy_Metabox, wordpress-seo

Show file Open project: yoast/wordpress-seo Class Usage Examples

Public Methods

Method Description
__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.

Private Methods

Method Description
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.

Method Details

__construct() public method

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

display() public method

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

template_generic_tab() public method

Generic tab.

template_keyword_tab() public method

Keyword tab for enabling analysis of multiple keywords.

traffic_light_svg() public method

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