wpseek.com
WordPress开发者和主题制作者的搜索引擎



redirect_post_location › WordPress过滤钩子

Since2.9.0
已弃用n/a
apply_filters( 'redirect_post_location', $location, $post_id )
参数: (2)
  • (string) $location The destination URL.
    Required: Yes
  • (int) $post_id The post ID.
    Required: Yes
定义在:
文档:

Filters the post redirect destination URL.





源码

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