admin管理员组文章数量:1026989
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
- 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
1 Answer
Reset to default 0One 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
.
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
- 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
1 Answer
Reset to default 0One 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
.
本文标签: metaboxDisplay multiple quotsave draft buttonquot on a post edit
版权声明:本文标题:metabox - Display multiple "save draft button" on a post edit 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745604732a2158662.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论