How to publish a post if condition is met?

I'm trying to have my posts published when wp_posts.ID IN (list).Is it advisable to do it with an event in MySQLM

I'm trying to have my posts published when wp_posts.ID IN (list). Is it advisable to do it with an event in MySQL/MariaDB? Would it mess up the cache? Is it enough to just do

SET
posts_status = 'publish'
WHERE
wp_posts.ID IN (list)

? I found one answer that could be the solution here but I'm not really sure how to implement it.

Also, it would be great if a solution had like a minute gap between publishing, so it doesn't slow down the server.

Any help would be greatly apriciated! Thank you

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

相关推荐

  • How to publish a post if condition is met?

    I'm trying to have my posts published when wp_posts.ID IN (list).Is it advisable to do it with an event in MySQLM

    9小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

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

关注微信