<Slushman />

unsplash-logo Josh Calabrese

Returning a submit button

Published Jan 17, 2013

In WordPress, the submit_button() function echoes a submit button. However, there are occasions where one might need a submit button, but not echoed. Like when returning a form from a function. For those occasions, use the get_submit_button() function instead. get_submit_button() accepts the same arguments as submit_button(), but returns instead of echoing.

Share this post!

Check out the most recent posts:

How to Center in CSS

This is the ultimate guide to centering elements like images, text, and just about anything else using CSS.