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

Filter: wpseo_schema_article_potential_action_target Allows filtering of the schema Article potentialAction target.

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

add_filter( 'wpseo_schema_article_potential_action_target', 'wp_kama_wpseo_schema_article_potential_action_target_filter' );

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

	// filter...
	return $targets;
}
$targets(массив)
The URLs for the Article potentialAction target.

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

Article::add_potential_action()
wpseo_schema_article_potential_action_target
yoast/src/generators/schema/article.php 181
$targets = \apply_filters( 'wpseo_schema_article_potential_action_target', [ $this->context->canonical . '#respond' ] );

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

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