Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我回来了,还在学习。我正在尝试使用 chron 作业删除较旧的帖子。在您的帮助下,这就是我所拥有的:
删除从wp_postsWHERE post_type= 'post' AND DATE_DIFF(NOW(), post_date) > 2
wp_posts
post_type
post_date
它似乎有效,但仅限于一个子域。我有许多正在处理的子域。谁能帮我解决这个问题?使用上述多个子域还需要什么?例子:
领域
sub1.domain
sub2.domain
sub3.domain
感谢您的考虑。
艾略特