Add Cancel Button to a Custom Meta Box

Any ideas how I could add a cancel button, like the default one in the Publish meta box, to a custom meta box?

The standard code is Cancel I guess it’s using some js to do the cancel/reset action so it’s not easy to replicate.

I basically want to add a button that will clear an input field in my meta box. input type=reset will clear all the fields on the page, so I wanted to see if I could use WP’s toolset.

Open to ideas for the best solution here.

Read more here:: Add Cancel Button to a Custom Meta Box

Leave a Reply

Your email address will not be published. Required fields are marked *