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

Bulk Edit screen

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.

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值