On this page
apply_filters( 'redirect_post_location', string $location, int $post_id )
Filters the post redirect destination URL.
Parameters
$locationstring-
The destination URL.
$post_idint-
The post ID.
Source
File: wp-admin/includes/post.php. View all references
wp_redirect( apply_filters( 'redirect_post_location', $location, $post_id ) );
Related
Used By
| Used By | Description |
|---|---|
| redirect_post() wp-admin/includes/post.php | Redirects to previous page. |
Changelog
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/redirect_post_location