0

I am aware of the submit_button() and get_submit_button() function, but can I call a "save draft" button on the same way? I have a very long "edit post page" and would like to display the save draft button various time

  • Drafts are automatically saved by default. No need to introduce a special button to accomplish this. – Pieter Goosen May 20 '14 at 8:18
  • Yes they are, but I had to disable the automatic save because of the large amount of data on the post. – Lorenzo Pirondini May 20 '14 at 9:23
0

One really simple way is to just insert another "save draft" button wherever you want in your post editor page.

<input type="submit" name="save" value="Save Draft" class="button">

You essentially just want to make sure it's got "save" as it's name attribute and "Save Draft" as it's value.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.