Codex

Function Reference/get submit button

Contents

Description

Returns a submit button, with provided text and appropriate class

Usage

<?php get_submit_button$text$type$name$wrap$other_attributes ); ?>

Parameters

$text
(string) (optional) The text of the button (defaults to 'Save Changes')
Default:
$type
(string) (optional) The type of button. One of: primary, secondary, delete
Default: primary
$name
(string) (optional) The HTML name of the submit button. Defaults to "submit". If no id attribute is given in $other_attributes below, $name will be used as the button's id.
Default: submit
$wrap
(boolean) (optional) True if the output button should be wrapped in a paragraph tag, false otherwise. Defaults to true
Default: true
$other_attributes
(array|string) (optional) Other attributes that should be output with the button. Defaults to no other attributes.
Default:

Change Log

Since: 3.1

Source File

get_submit_button() is located in wp-admin/includes/template.php