Tagged Questions
3
votes
3answers
132 views
Running WP Cron on specific local time
The scenario is to run insert_post function every midnight (00:00) of local time. Must run daily on weekday.
function add_daily_task(){
if((date('l', time()) != 'Saturday') || (date('l', time()) ...
1
vote
0answers
181 views
wp_insert_post not completing when run via cron [closed]
I have created a plugin that accesses an XML feed that contains articles and saves the articles from that feed as posts. You can set a time interval for the plugin to run via WP cron and access the ...
0
votes
2answers
238 views
WP Cron is “half-failing” to insert posts
I built a plugin for my company, which basically goes to tube sites, scrapes them for content, and posts them automatically in whatever state is defined (publish, draft, future, etc).
Now, everything ...
1
vote
5answers
717 views
Insert Wordpress page via external (cron) script?
I'm trying to write a php script that I can run out of cron to create new Wordpress pages.
Unfortunately, I can't find any documentation on how to do this. I'm using the WP scripts rather than ...