Skip to content

Instantly share code, notes, and snippets.

@slushman
Last active August 29, 2015 14:19
Show Gist options
  • Save slushman/a32d7d8f5bbd4fa04602 to your computer and use it in GitHub Desktop.
Save slushman/a32d7d8f5bbd4fa04602 to your computer and use it in GitHub Desktop.
WordPress Submit Button
/**
* Default WordPress submit() parameters
*
* @param string $text changes the text on the button
* @param string $type determines the style of the button. WordPress styling options:
* primary - the default
* secondary
* delete
* custom - add your custom class for styling here!
* @param string $name sets the name attribute for the button, its "Submit" by default.
* @param string $wrap determines if the button is wrapped in paragraphs tags or not, the default is true.
* @param array $other_attributes sets other attributes for the button.
*/
submit_button( 'Whatever Text', 'my-custom-class' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment