首页 > 其他 > 详细

黄聪:wordpress如何添加自定义文章快速编辑按钮

时间:2015-06-04 11:10:10      阅读:155      评论:0      收藏:0      [点我收藏+]

技术分享

When working with WordPress posts and you want to quickly change the status or date of one or more posts, it’s a simple affair via the built-in bulk and quick edit tools. However, when you’re dealing with custom post types and fields, it’s not so easy.

Please See The Update Below.

Until now…

During a recent tasking to help the Media Burn Archive with speeding up mass updates for video meta fields, we found the easiest solution to be via WordPress’s action calls. Specifically thebulk_edit_custom_boxandquick_edit_custom_boxactions.

While reading the documentation forbulk_edit_custom_boxandquick_edit_custom_boxinitially only gave a clue, two further references shed more light to really getting things done.

While putting all of these resources together helped greatly, the final solution adapts for custom post types and minor security checks. There’s still more to do, but for now, It’s Good Enough.

Feel free to check out the code via downloading below.

The Code

Screenshots

Even better now!

I just wrote the Custom Bulk/Quick Edit plugin for WordPress. There’s also a premium version as well to enable working with custom post types.

 

黄聪:wordpress如何添加自定义文章快速编辑按钮

原文:http://www.cnblogs.com/huangcong/p/4551097.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!