Property | Type | Description | |
---|---|---|---|
$name | string | ||
$tabs | WPSEO_Metabox_Tab[] |
Method | Description | |
---|---|---|
__construct ( string $name, string $link_content, array $tabs = [], array $options = [] ) | Constructor. | |
add_tab ( WPSEO_Metabox_Tab $tab ) | Add a WPSEO_Metabox_Tab object to the tabs. | |
display_content ( ) | Outputs the section content if any tab has been added. | |
display_link ( ) | Outputs the section link if any tab has been added. |
Method | Description | |
---|---|---|
has_tabs ( ) : boolean | Checks if any tabs have been added to the section. |
Method | Description | |
---|---|---|
tab_content ( ) : string | Concatenates all tabs' content into one html string. | |
tab_links ( ) : string | Concatenates all tabs' links into one html string. |
public __construct ( string $name, string $link_content, array $tabs = [], array $options = [] ) | ||
$name | string | The name of the section, used as an identifier in the html. Can only contain URL safe characters. |
$link_content | string | The text content of the section link. |
$tabs | array | The metabox tabs (`WPSEO_Metabox_Tabs[]`) to be included in the section. |
$options | array | Optional link attributes. |
public add_tab ( WPSEO_Metabox_Tab $tab ) | ||
$tab | WPSEO_Metabox_Tab | Tab to add. |
public display_content ( ) |
public display_link ( ) |