Inline documentation for hooks in wp-admin/post.php.

Props nukaga, kpdesign.
Fixes #25846.

Built from https://develop.svn.wordpress.org/trunk@26399


git-svn-id: http://core.svn.wordpress.org/trunk@26299 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2013-11-26 07:44:10 +00:00
parent b51436a4de
commit 89211ee8d6
1 changed files with 8 additions and 0 deletions

View File

@ -70,6 +70,14 @@ function redirect_post($post_id = '') {
$location = add_query_arg( 'message', 4, get_edit_post_link( $post_id, 'url' ) );
}
/**
* Filter the post redirect destination URL.
*
* @since 2.9.0
*
* @param string $location The destination URL.
* @param int $post_id The post ID.
*/
wp_redirect( apply_filters( 'redirect_post_location', $location, $post_id ) );
exit;
}