dongyan6235 2017-08-01 08:30
浏览 42
已采纳

如何在wordpress上定期执行PHP脚本/插件?

I need to update a database that I have stored localy based on an online API. I need to make API calls periodically. What is a good strategy when it comes to periodical PHP script execution?

  • 写回答

1条回答 默认 最新

  • dongzhun6952 2017-08-01 08:32
    关注

    Use a cron job. There are tons of tutorials out there on how to do that. There is even a Wordpress Cron Job scheduler plugin (this link is only for reference, I'm not endorsing it specifically). You can find it here. Note that you will need administrative rights on the server to execute cron jobs.

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

报告相同问题?