Yoast\WP\SEO\ai_api_url хук-фильтрYoast 1.0

Filter: 'Yoast\WP\SEO\ai_api_url' - Replaces the default URL for the AI API with a custom one.

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

add_filter( 'Yoast\WP\SEO\ai_api_url', 'wp_kama_Yoast\WP\SEO\ai_api_url_filter' );

/**
 * Function for `Yoast\WP\SEO\ai_api_url` filter-hook.
 * 
 * @param string $url The default URL for the AI API.
 *
 * @return string
 */
function wp_kama_Yoast\WP\SEO\ai_api_url_filter( $url ){

	// filter...
	return $url;
}
$url(строка)
The default URL for the AI API.

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

API_Client::perform_request()
Yoast\WP\SEO\ai_api_url
yoast/src/ai-http-request/infrastructure/api-client.php 56
$url      = \apply_filters( 'Yoast\WP\SEO\ai_api_url', $this->base_url );
yoast/src/ai/http-request/infrastructure/api-client.php 58
$url      = \apply_filters( 'Yoast\WP\SEO\ai_api_url', $this->base_url );

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

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