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)', 'wp_kama_wpseo_option_tab_filter_name_filter', 10, 3 );

/**
 * Function for `wpseo_option_tab-(tab_filter_name)` filter-hook.
 * 
 * @param string|null       $tab_contents The content that should be displayed for this tab. Leave empty for default behaviour.
 * @param WPSEO_Option_Tabs $option_tabs  The registered option tabs.
 * @param WPSEO_Option_Tab  $tab          The tab that is being displayed.
 *
 * @return string|null
 */
function wp_kama_wpseo_option_tab_filter_name_filter( $tab_contents, $option_tabs, $tab ){

	// filter...
	return $tab_contents;
}
$tab_contents(строка|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_Tabs_Formatter::run()
wpseo_option_tab-(tab_filter_name)
yoast/admin/class-option-tabs-formatter.php 75
$option_tab_content = apply_filters( 'wpseo_option_tab-' . $tab_filter_name, null, $option_tabs, $tab );

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

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