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

Filter: wpseo_indexables_indexation_alert Allow developers to filter the reason of the indexation

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

add_filter( 'wpseo_indexables_indexation_alert', 'wp_kama_wpseo_indexables_indexation_alert_filter', 10, 2 );

/**
 * Function for `wpseo_indexables_indexation_alert` filter-hook.
 * 
 * @param string $text   The text to show as reason.
 * @param string $reason The reason value.
 *
 * @return string
 */
function wp_kama_wpseo_indexables_indexation_alert_filter( $text, $reason ){

	// filter...
	return $text;
}
$text(строка)
The text to show as reason.
$reason(строка)
The reason value.

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

Indexing_Notification_Presenter::get_message()
wpseo_indexables_indexation_alert
yoast/src/presenters/admin/indexing-notification-presenter.php 96
return (string) \apply_filters( 'wpseo_indexables_indexation_alert', $text, $reason );

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

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