yoast_free_additional_metabox_sections
Private filter: yoast_free_additional_metabox_sections.
Meant for internal use only. Allows adding additional tabs to the Yoast SEO metabox.
Использование
add_filter( 'yoast_free_additional_metabox_sections', 'wp_kama_yoast_free_additional_metabox_sections_filter' ); /** * Function for `yoast_free_additional_metabox_sections` filter-hook. * * @param array[] $tabs An array of arrays with tab specifications. * * @return array[] */ function wp_kama_yoast_free_additional_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.
-
-
-
Список изменений
С версии 11.9 | Введена. |
Где вызывается хук
yoast_free_additional_metabox_sections
yoast/admin/metabox/class-metabox.php 481
$requested_tabs = apply_filters( 'yoast_free_additional_metabox_sections', [] );