comment_form_submit_button
apply_filters( ‘comment_form_submit_button’, string $submit_button , array $args )
过滤器::过滤要显示的注释表单的提交按钮。
Filter Hook: Filters the submit button for the comment form to display.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$submit_button | (string) | 提交按钮的HTML标记。 |
$args | (array) | 传递给comment_form()的参数。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.2.0 | wp-includes/comment-template.php:2630 | 1 | 0 |
笔记(Notes)
示例:下面的示例演示如何使用此筛选器更改注释表单的“提交”按钮标记。
comment_form_submit_button 为WP2原创文章,链接:https://www.wp2.cn/hook/comment_form_submit_button/