wpseo_option_tab-(tab_filter_name) хук-фильтр . Yoast 1.0
Allows to override the content that is display on the specific option tab.
Использование
add_filter( 'wpseo_option_tab-(tab_filter_name)', 'filter_function_name_6104', 10, 3 ); function filter_function_name_6104( $null, $option_tabs, $tab ){ // filter... return $null; }
- $null(строка/null)
- The content that should be displayed for this tab. Leave empty for default behaviour.
- $option_tabs(WPSEO_Option_Tabs)
- The registered option tabs.
- $tab(WPSEO_Option_Tab)
- The tab that is being displayed.
Где вызывается хук
wpseo_option_tab-(tab_filter_name)
yoast/admin/class-option-tabs-formatter.php 61
$option_tab_content = apply_filters( 'wpseo_option_tab-' . $tab_filter_name, null, $option_tabs, $tab );
Где используется хук в ядре Yoast SEO
yoast/admin/class-admin-media-purge-notification.php 27
add_filter( 'wpseo_option_tab-metas_media', [ $this, 'output_hidden_setting' ] );