comment_edit_redirect

過濾鉤子
apply_filters( 'comment_edit_redirect', $location, $comment_id )
引數
  • (string) $location The URI the user will be redirected to.
    Required:
  • (int) $comment_id The ID of the comment being edited.
    Required:
定義位置
相關勾子
comment_post_redirectcomment_edit_precomment_textcomment_on_draftcomment_text_rss
相關方法
comment_textcomment_datecomment_timecomment_text_rsscomment_idis_redirect
引入
2.1.0
棄用
-

comment_edit_redirect: 這是一個過濾鉤子,在一個評論在資料庫中被更新後執行。該鉤子被傳遞給使用者在評論被更新後將被重定向到的URL。這個鉤子的目的是允許外掛或主題修改使用者將被重定向到的URL。

過濾使用者在管理員中編輯評論後被重定向到的URI。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$location = apply_filters( 'comment_edit_redirect', $location, $comment_id );
$location = apply_filters( 'comment_edit_redirect', $location, $comment_id );
$location = apply_filters( 'comment_edit_redirect', $location, $comment_id );

常見問題

FAQs
檢視更多 >