A WordPress-centric search engine for devs and theme authors



redirect_post_location ›

Since2.9.0
Deprecatedn/a
apply_filters( 'redirect_post_location', $location, $post_id )
Parameters: (2)
  • (string) $location The destination URL.
    Required: Yes
  • (int) $post_id The post ID.
    Required: Yes
Defined at:
Codex:

Filters the post redirect destination URL.





Source

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