comment_form_submit_field

過濾鉤子
apply_filters( 'comment_form_submit_field', $submit_field, $args )
引數
  • (string) $submit_field HTML markup for the submit field.
    Required:
  • (array) $args Arguments passed to comment_form().
    Required:
定義位置
相關勾子
comment_form_fieldscomment_form_default_fieldscomment_form_after_fieldscomment_form_submit_buttoncomment_form_before_fields
相關方法
comment_form_titlecomment_id_fieldscomment_footer_dieget_comment_id_fieldscomment_formget_post_field
引入
4.2.0
棄用
-

comment_form_submit_field: 這個過濾鉤子允許開發者在評論表單中新增自定義欄位。

過濾提交欄位,以便顯示評論表單。

提交欄位包括提交按鈕、評論表單的隱藏欄位,以及任何包裝標記。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
echo apply_filters( 'comment_form_submit_field', $submit_field, $args );
echo apply_filters( 'comment_form_submit_field', $submit_field, $args );
echo apply_filters( 'comment_form_submit_field', $submit_field, $args );

常見問題

FAQs
檢視更多 >