metabox - Display multiple "save draft button" on a post edit

I am aware of the submit_button() and get_submit_button() function, but can I call a "save draft" button on th

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

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

Share Improve this question edited May 20, 2014 at 8:17 Pieter Goosen 55.4k23 gold badges116 silver badges210 bronze badges asked May 20, 2014 at 8:00 Lorenzo PirondiniLorenzo Pirondini 166 bronze badges 2
  • Drafts are automatically saved by default. No need to introduce a special button to accomplish this. – Pieter Goosen Commented May 20, 2014 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 Commented May 20, 2014 at 9:23
Add a comment  | 

1 Answer 1

Reset to default 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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745604733a4635607.html

相关推荐

  • metabox - Display multiple &quot;save draft button&quot; on a post edit

    I am aware of the submit_button() and get_submit_button() function, but can I call a "save draft" button on th

    3小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信