wpseo_indexables_indexation_alert
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.
Где вызывается хук
wpseo_indexables_indexation_alert
yoast/src/presenters/admin/indexing-notification-presenter.php 105
return (string) \apply_filters( 'wpseo_indexables_indexation_alert', $text, $reason );