apply_filters( 'redirect_post_location', string $location, int $post_id )
Filters the post redirect destination URL.
Parameters
- $location
-
(string) The destination URL.
- $post_id
-
(int) The post ID.
Source
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/redirect_post_location