old_slug_redirect_url
Filters the old slug redirect URL.
Использование
add_filter( 'old_slug_redirect_url', 'wp_kama_old_slug_redirect_url_filter' ); /** * Function for `old_slug_redirect_url` filter-hook. * * @param string $link The redirect URL. * * @return string */ function wp_kama_old_slug_redirect_url_filter( $link ){ // filter... return $link; }
- $link(строка)
- The redirect URL.
Список изменений
С версии 4.4.0 | Введена. |
Где вызывается хук
old_slug_redirect_url
wp-includes/query.php 1114
$link = apply_filters( 'old_slug_redirect_url', $link );