Created
October 7, 2015 17:12
-
-
Save kraftbj/196c8ac6f6383e8fcb4e to your computer and use it in GitHub Desktop.
Add e-mail setting field to WPJM Resume
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
<?php //remove if adding to existing file. | |
add_filter('resume_manager_settings', 'bk_add_email_resumes'); | |
function bk_add_email_resumes( $settings ){ | |
$settings['resume_submission'][1][] = array( | |
'name' => 'resume_manager_email_notifications', | |
'std' => '', | |
'label' => __( 'E-Mail Addresses To Be Notified', 'wp-job-manager-resumes' ), | |
'desc' => __( 'Instead of the admin, bother these folks instead.', 'wp-job-manager-resumes' ), | |
'type' => 'input' | |
); | |
return $settings; | |
} | |
add_filter( 'resume_manager_new_resume_notification_recipient', 'bk_apply_my_setting' ); | |
function bk_apply_my_setting( $email ){ | |
$option = get_option('resume_manager_email_notifications'); | |
if ( $option ) { | |
return $option; | |
} | |
return $email; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment