Codex

Function Reference/submit button

Contents

Description

Echos a submit button, with provided text and appropriate class

Usage

<?php 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) (NULL) optional
Default: None

Return Values

echos an html submit button.

Examples

Notes

Change Log

Since: 3.1

Source File

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

Related