Run a php file daily at specific time
You can include the PHP file and do the tasks, if WP-cron is your only option. // Scheduled Action Hook function run_my_script( ) { require_once(‘related/path/to/php/file.php’); } // Schedule Cron Job Event function USERS_MONITORING() { if ( ! wp_next_scheduled( ‘USERS_MONITORING’ ) ) { wp_schedule_event( strtotime(’07:00:00′), ‘daily’, ‘USERS_MONITORING’ ); } } add_action( ‘USERS_MONITORING’, ‘run_my_script’ ); Note that … Read more