
WordPress函数文件Functions.php教程指南:定义、使用、替代方案及实例
submit_button ( $text = null, $type = 'primary', $name = 'submit', $wrap = true, $other_attributes = null )
submit_button: 这是一个WordPress的函数,用于生成提交按钮的HTML。它有两个参数,$text和$type。参数$text是要显示在按钮上的文本。$type参数是按钮的类型,可以是”主”、”次”、”删除”或”按钮”。
呼应一个提交按钮,并提供文本和适当的类。
function submit_button( $text = null, $type = 'primary', $name = 'submit', $wrap = true, $other_attributes = null ) { echo get_submit_button( $text, $type, $name, $wrap, $other_attributes ); }