comment_form_comments_closed

動作鉤子
do_action( 'comment_form_comments_closed' )

comment_form_comments_closed – 當一個文章或頁面的評論被關閉時,這個動作鉤子被呼叫。它允許開發者在評論關閉時新增自定義內容或功能。

如果評論被關閉,則在評論表單之後觸發。

為了向後相容,如果用無效的文章物件或ID呼叫comment_form(),這個動作也會觸發。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'comment_form_comments_closed' );
do_action( 'comment_form_comments_closed' );
do_action( 'comment_form_comments_closed' );

常見問題

FAQs
檢視更多 >