/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
if (!wp_next_scheduled('my_task_hook')) { } add_action( 'my_task_hook', 'my_task_function' ); function my_task_function() { wp_mail('[email protected]', 'Automatic email', 'Hello, this is an automatically scheduled email from WordPress.'); }