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

Filter: wpseo_schema_webpage_potential_action_target Allows filtering of the schema WebPage potentialAction target.

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

add_filter( 'wpseo_schema_webpage_potential_action_target', 'wp_kama_wpseo_schema_webpage_potential_action_target_filter' );

/**
 * Function for `wpseo_schema_webpage_potential_action_target` filter-hook.
 * 
 * @param array $targets The URLs for the WebPage potentialAction target.
 *
 * @return array
 */
function wp_kama_wpseo_schema_webpage_potential_action_target_filter( $targets ){

	// filter...
	return $targets;
}
$targets(array)
The URLs for the WebPage potentialAction target.

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

WebPage::add_potential_action()
wpseo_schema_webpage_potential_action_target
yoast/src/generators/schema/webpage.php 145
$targets = \apply_filters( 'wpseo_schema_webpage_potential_action_target', [ $url ] );

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

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