Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
2 votes
Accepted

Execute scheduled cron with ajax call to wp-cron.php

wp-cron.php is not secured. It can be called from anywhere and by anyone.
DaveFX's user avatar
  • 136
1 vote

Cron Job not working

The default supported recurrences are ‘hourly’, ‘twicedaily’, ‘daily’, and ‘weekly’. From the WordPress definition https://developer.wordpress.org/reference/functions/wp_get_schedules/ If you're using ...
Marlon's user avatar
  • 31
1 vote
Accepted

Cron Register everytime if i reload admin if i pass some extra argument in wp_schedule_event function

This happens because this code: if ( ! wp_next_scheduled( 'myprefix_cron_hook' ) ) { wp_schedule_event( time(), 'every_one_hoursinwp', 'myprefix_cron_hook',array(42)); } Is the same as this code: ...
Tom J Nowell's user avatar
  • 59.4k
1 vote

Should I run wp cron event run via crontab or as a daemon?

As far as WP and WP CLI is concerned it will make zero difference, and that is why it does not tell you to use one or the other. Both will work, there are no WordPress based advantages or ...
Tom J Nowell's user avatar
  • 59.4k

Only top scored, non community-wiki answers of a minimum length are eligible