douwen5681 2011-10-04 02:25
浏览 18
已采纳

每隔X小时自动在服务器上加载Wordpress页面

I have a page in my Wordpress site that calculates post popularity and updates several meta fields on the posts and calls a few functions as well. This page is set to "Private" so that only myself and other admins can see it. Is there a way to load this page automatically every 6, 12, or 24 hours?

I'd be satisfied with a plugin, but generally prefer to write my own PHP code.

  • 写回答

1条回答 默认 最新

  • dotaer1993 2011-10-04 02:29
    关注

    Create a cron job or use WordPress directly with wp_schedule_event(). The latter would probably allow you to remove the placeholder page.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计