redirect_term_location

过滤钩子
apply_filters( 'redirect_term_location', $location, $tax )
参数
  • (string) $location The destination URL.
    Required:
  • (WP_Taxonomy) $tax The taxonomy object.
    Required:
定义位置
相关勾子
redirect_post_locationedit_term_linkedit_term_taxonomyget_edit_term_linkredirect_canonical
相关方法
wp_redirect_admin_locationsedit_term_linkredirect_canonicalget_edit_term_linkredirect_postget_term_link
引入
4.6.0
弃用
-

redirect_term_location 是一个当WordPress网站重定向一个术语位置时触发的动作。这个钩子通常被插件或主题开发者用来修改术语重定向的行为。

过滤分类法的重定向目标URL。

wp_redirect( apply_filters( 'redirect_term_location', $location, $tax ) );

常见问题

FAQs
查看更多 >
闪电伯伯

(工作日 10:00 - 18:30 为您服务)

2025-11-19 06:27:47

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: