This file contains hidden or 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
// Hook into user_has_cap filter. This assumes you have setup resumes to require the capability 'has_active_job_package' | |
add_filter( 'user_has_cap', 'has_active_job_package_capability_check', 10, 3 ); | |
/** | |
* has_active_job_package_capability_check() | |
* | |
* Filter on the current_user_can() function. | |
* | |
* @param array $allcaps All the capabilities of the user | |
* @param array $cap [0] Required capability |
This file contains hidden or 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
// Hook into user_has_cap filter. This assumes you have setup resumes to require the capability 'has_active_job_package' | |
add_filter( 'user_has_cap', 'has_active_job_package_capability_check', 10, 3 ); | |
/** | |
* has_active_job_package_capability_check() | |
* | |
* Filter on the current_user_can() function. | |
* | |
* @param array $allcaps All the capabilities of the user | |
* @param array $cap [0] Required capability |
This file contains hidden or 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
// Hook into user_has_cap filter. This assumes you have setup resumes to require the capability 'has_active_subscription' | |
add_filter( 'user_has_cap', 'has_active_subscription_capability_check', 10, 3 ); | |
/** | |
* has_active_subscription_capability_check() | |
* | |
* Filter on the current_user_can() function. | |
* | |
* @param array $allcaps All the capabilities of the user | |
* @param array $cap [0] Required capability |
This file contains hidden or 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
add_filter( 'the_job_location_map_link', 'custom_the_job_location_map_link' ); | |
function custom_the_job_location_map_link( $link ) { | |
return strip_tags( $link ); | |
} |
This file contains hidden or 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
add_filter( 'create_job_application_notification_recipient', 'custom_create_job_application_notification_recipient', 10, 3 ); | |
function custom_create_job_application_notification_recipient( $send_to, $job_id, $application_id ) { | |
// change $send_to here | |
return $send_to; | |
} |
This file contains hidden or 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
/** Code goes in theme functions.php **/ | |
add_filter( 'job_manager_bookmark_form_login_url', 'custom_job_manager_bookmark_form_login_url' ); | |
function custom_job_manager_bookmark_form_login_url() { | |
return 'http://someurl.com'; | |
} |
This file contains hidden or 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
add_filter( 'job_application_statuses', 'add_new_job_application_status' ); | |
function add_new_job_application_status( $statuses ) { | |
unset( $statuses['offer'] ); // Other statuses include new, hired, archived and interviewed | |
return $statuses; | |
} |
This file contains hidden or 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
add_filter( 'job_application_statuses', 'add_new_job_application_status' ); | |
function add_new_job_application_status( $statuses ) { | |
$statuses['example'] = _x( 'Example', 'job_application', 'wp-job-manager-applications' ); | |
$statuses['another_example'] = _x( 'Another Example', 'job_application', 'wp-job-manager-applications' ); | |
$statuses['a_third_example'] = _x( 'A Third Example', 'job_application', 'wp-job-manager-applications' ); | |
return $statuses; | |
} |
This file contains hidden or 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
add_filter( 'job_manager_indeed_get_jobs_args', 'custom_job_manager_indeed_get_jobs_args' ); | |
function custom_job_manager_indeed_get_jobs_args( $args ) { | |
$args['sort'] = 'date'; | |
return $args; | |
} |
This file contains hidden or 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
add_filter( 'submit_job_form_fields', 'make_location_field_required' ); | |
function make_location_field_required( $fields ) { | |
$fields['job']['job_location']['required'] = true; | |
return $fields; | |
} |