yoast_free_additional_taxonomy_metabox_sections хук-фильтрYoast 1.0

Private filter: yoast_free_additional_taxonomy_metabox_sections.

Meant for internal use only. Allows adding additional tabs to the Yoast SEO metabox for taxonomies.

Использование

add_filter( 'yoast_free_additional_taxonomy_metabox_sections', 'wp_kama_yoast_free_additional_taxonomy_metabox_sections_filter' );

/**
 * Function for `yoast_free_additional_taxonomy_metabox_sections` filter-hook.
 * 
 * @param array[] $tabs An array of arrays with tab specifications.
 *
 * @return array[]
 */
function wp_kama_yoast_free_additional_taxonomy_metabox_sections_filter( $tabs ){

	// filter...
	return $tabs;
}
$tabs(array[])

An array of arrays with tab specifications.

  • tab(массив)
    A tab specification.

    • name(строка)
      The name of the tab. Used in the HTML IDs, href and aria properties.

    • link_content(строка)
      The content of the tab link.

    • content(строка)
      The content of the tab.

    • options(массив)
      Optional. Extra options.

      • link_class(строка)
        Optional. The class for the tab link.

      • link_aria_label(строка)
        Optional. The aria label of the tab link.

Где вызывается хук

WPSEO_Taxonomy_Metabox::get_additional_tabs()
yoast_free_additional_taxonomy_metabox_sections
yoast/admin/taxonomy/class-taxonomy-metabox.php 190
$requested_tabs = apply_filters( 'yoast_free_additional_taxonomy_metabox_sections', [] );

Где используется хук в Yoast SEO

Использование не найдено.