old_slug_redirect_post_id filter-hook . WP 4.9.3
Filters the old slug redirect post ID.
Usage
add_filter( 'old_slug_redirect_post_id', 'filter_function_name_6677' ); function filter_function_name_6677( $id ){ // filter... return $id; }
- $id(int)
- The redirect post ID.
Changelog
Since 4.9.3 | Introduced. |
Where the hook is called
old_slug_redirect_post_id
wp-includes/query.php 1055
$id = apply_filters( 'old_slug_redirect_post_id', $id );