Running a scheduled task in a Wordpress plugin

I am trying to write a Wordpress plugin that automatically posts a blog post at a specific time of the day. For example, read a bunch of RSS feeds and post a daily digest of all new posts.

There are plugins that do something similar to what I want, but many of them rely on the cron job for automatic scheduling. I will do this if necessary, but I was hoping there was a better way. Getting a regular Wordpress user to add a cron job is not entirely friendly.

Is there a good way to schedule a task that runs from a Wordpress plugin? It should not start at exactly the right time.

+3
source share
4 answers

pseudo-cron , :

1, , - "" . , .

2, . , , "cron", , .

2 : -)

+3

vBulletin Pseudo-Cron, , .

, Wordpress, , - , .

0

, - -. , , , . Wordpress index.php - , .htaccess, pseudo-cron.php, . , - , , script , .

0

Source: https://habr.com/ru/post/1696775/


All Articles