This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( ! has_action('job-manager-alert-check-reschedule') ) { | |
function wpjm_alerts_check_reschedule_events() { | |
$alert_posts = new WP_Query( array( | |
'post_type' => 'job_alert', | |
'posts_per_page' => -1, | |
'post_status' => 'publish' | |
) ); | |
$schedules = WP_Job_Manager_Alerts_Notifier::get_alert_schedules(); | |
foreach ( $alert_posts->posts as $post ) { | |
if ( false === wp_next_scheduled( 'job-manager-alert', array( $post->ID ) ) ) {$alert_frequency = get_post_meta( $post->ID, 'alert_frequency', true ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |