apply_filters( ‘redirect_post_location’, string $location, int $post_id )

In this article

Filters the post redirect destination URL.

Parameters

$locationstring
The destination URL.
$post_idint
The post ID.

Source

wp_redirect( apply_filters( 'redirect_post_location', $location, $post_id ) );

Changelog

VersionDescription
2.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.