Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // functions.php of your theme
- // (See http://codex.wordpress.org/Plugin_API/Filter_Reference/cron_schedules)
- function my_add_weekly( $schedules ) {
- // add a 'weekly' schedule to the existing set
- $schedules['weekly'] = array(
- 'interval' => 604800, //interval of one week in seconds
- 'display' => __('Once Weekly') //name of the interval
- );
- return $schedules;
- }
- add_filter( 'cron_schedules', 'my_add_weekly' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement