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
add_filter( 'submit_job_form_fields', 'custom_submit_job_form_fields' ); | |
function custom_submit_job_form_fields( $fields ) { | |
if ( isset( $_REQUEST['job_category'] ) ) { | |
$fields['job']['job_category']['default'] = sanitize_text_field( $_REQUEST['job_category'] ); | |
} | |
return $fields; | |
} |
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 | |
add_filter( 'gettext', 'change_cv_to_resume', 20, 3 ); | |
/** | |
* Changes 'CV' to "resume" for applications | |
*/ | |
function change_cv_to_resume( $translated_text, $text, $domain ) { | |
if ( "wp-job-manager-applications" === $domain ) { | |
$translated_text = str_replace( 'Upload CV', 'Upload Resume', $translated_text ); | |
} |
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 | |
// Add category to single job listing meta | |
add_action( 'single_job_listing_meta_end', 'output_job_category' ); | |
// And to job list | |
add_action( 'job_listing_meta_end', 'output_job_category' ); | |
function output_job_category() { | |
global $post; |
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
add_theme_support( 'job-manager-templates' ); |
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
/** Code goes in theme functions.php **/ | |
add_filter( 'submit_resume_form_login_url', 'custom_submit_resume_form_login_url' ); | |
function custom_submit_resume_form_login_url() { | |
return 'http://someurl.com'; | |
} |
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
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 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 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 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 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 |