comment_form_submit_button

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

comment_form_submit_button: 這個過濾鉤子允許開發者修改預設的”發表評論”按鈕文字、HTML或新增額外的提交按鈕。

過濾提交按鈕,以顯示評論表格。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$submit_button = apply_filters( 'comment_form_submit_button', $submit_button, $args );
$submit_button = apply_filters( 'comment_form_submit_button', $submit_button, $args );
$submit_button = apply_filters( 'comment_form_submit_button', $submit_button, $args );

常見問題

FAQs
檢視更多 >