redirect_post_location WordPress Filter Hook
The redirect_post_location hook allows you to modify the URL to which a user is redirected after publishing a post. This can be useful if you want to redirect the user to a specific URL or if you want to add a query string to the redirect URL.
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. |