4
am creating a wordpress function to schedule events in the following way:
add_action( 'wp', 'prefix_setup_schedule' );
function prefix_setup_schedule() {
if ( ! wp_next_scheduled( 'send_email' ) ) {
wp_schedule_event( time(), 'daily', 'send_email');
}
}
Except that this team would have to be at 6:00 and not the time that was recorded, so I wanted to make it take the current day and the time always at 6:00 in this format of the team so that there are no problems in the function;
Some solution?
That’s right, thanks @Amauri :D
– Caio Gomes
I hope I’ve helped, don’t forget to mark the answer as answered in case it went all right, Abs
– Amauri