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', 'filter_function_name_4225', 10, 2 ); function filter_function_name_4225( $text, $reason ){ // filter... return $text; }
- $text(строка)
- The text to show as reason.
- $reason(строка)
- The reason value.
Где вызывается хук
wpseo_indexables_indexation_alert
yoast/src/presenters/admin/indexing-notification-presenter.php 96
return (string) \apply_filters( 'wpseo_indexables_indexation_alert', $text, $reason );