Echoes a submit button, with provided text and appropriate class(es).
Parameters
$textstringoptional
The text of the button. Defaults to 'Save Changes'.Default: ''
$typestringoptional
The type and CSS class(es) of the button. Core values include 'primary', 'small', and 'large'. Default 'primary'.Default: 'primary'
$namestringoptional
The HTML name of the submit button. If no id attribute is given in the $other_attributes parameter, $name will be used as the button's id. Default 'submit'.Default: 'submit'
$wrapbooloptional
True if the output button should be wrapped in a paragraph tag, false otherwise. Default true.Default: true
$other_attributesarray|stringoptional
Other attributes that should be output with the button, mapping attributes to their values, e.g. array( 'id' => 'search-submit' ). These key/value attribute pairs will be output as attribute="value", where attribute is the key. Attributes can also be provided as a string, e.g. id="search-submit", though the array format is generally preferred. Default empty string.Default: ''
Uses · 1
get_submit_button()Returns a submit button, with provided text and appropriate class.
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 6.9.7 tag, from src/wp-admin/includes/template.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.