Job Alerts snippets

Note: All code examples on this site are provided for developer reference/guidance only and we cannot guarantee that they will always work as expected. Our support policy does not include assistance with modifying or debugging code from any code examples, and they may be changed or removed if we find they no longer work due to changes in our plugins.

↑ Back to Top Add a custom email frequency for WPJM Job Alerts

The following example will add a new frequency “Monthy” for WPJM Job Alerts.

function htdat_job_manager_alerts_alert_schedules ( $schedules ) {
    $schedules['monthly'] = array(
        'interval' => 86400 * 30,
        'display'  => __( 'Monthly', 'wp-job-manager-alerts' )
    );

    return $schedules;
}

add_filter('job_manager_alerts_alert_schedules', 'htdat_job_manager_alerts_alert_schedules');

↑ Back to Top Change the From: name in the Job Alert notification

 function job_manager_alerts_mail_from_name_dm () {
 		return "Add From Name Here";   
 }

add_filter('job_manager_alerts_mail_from_name', 'job_manager_alerts_mail_from_name_dm');

↑ Back to Top Change the From: email in the Job Alert notification

function job_manager_alerts_new_alert_from_email() {
 $my_new_email = 'test@example.com';
 return $my_new_email;
}

add_filter( 'job_manager_alerts_mail_from_email', 'job_manager_alerts_new_alert_from_email');