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_action( 'init', 'jm_update_resume_slug' ); | |
function jm_update_resume_slug( ) { | |
$resume_args = get_post_type_object('resume'); | |
if ( ! empty( $resume_args ) ) { | |
$resume_args->rewrite = array( | |
'slug' => 'cv', | |
'with_front' => false, | |
'feeds' => false, | |
'pages' => false, | |
); |
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
// Add your own function to filter the fields | |
add_filter( 'submit_job_form_fields', 'custom_submit_job_form_fields_dalt' ); | |
// This is your function which takes the fields, modifies them, and returns them | |
// You can see the fields which can be changed here: https://github.com/mikejolley/WP-Job-Manager/blob/master/includes/forms/class-wp-job-manager-form-submit-job.php | |
function custom_submit_job_form_fields_dalt( $fields ) { | |
// Here we target one of the job fields (job_title) and change it's label | |
$fields['company']['company_tagline']['type'] = 'textarea'; |
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_dm' ); | |
function custom_submit_job_form_fields_dm( $fields ) { | |
// in this example, we remove the job_tags field | |
unset($fields['job']['job_tags']); | |
// And return the modified fields | |
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
/** added to functions.php to create Start Date field **/ | |
add_filter( 'submit_job_form_fields', 'frontend_add_start_field' ); | |
function frontend_add_start_field( $fields ) { | |
$fields['job']['job_start'] = array( | |
'label' => __( 'Start', 'job_manager' ), | |
'type' => 'text', | |
'required' => true, | |
'placeholder' => 'eg March 2017', |
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
function dm_display_wpjm_single_categories () { | |
$terms = wp_get_post_terms( get_the_ID(), 'job_listing_category' ); | |
if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){ | |
echo '<ul>'; | |
foreach ( $terms as $term ) { | |
echo '<li>' . '<a href="' . esc_url( get_term_link( $term ) ) . '">' . $term->name . '</a></li>'; | |
} | |
echo '</ul>'; | |
} | |
} |
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_candidate_notification_headers','dm_job_candidate_application_headers'); | |
function dm_job_candidate_application_headers($headers) { | |
$headers[] = 'From: ' . 'My Custom From Name' . ' <example@example.com>'; | |
return $headers; | |
} |
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_headers','dm_job_application_headers'); | |
function dm_job_application_headers($headers) { | |
$headers[] = 'From: ' . 'My Custom From Name' . ' <example@example.com>'; | |
return $headers; | |
} |
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_headers','daki_job_application_headers'); | |
function daki_job_application_headers($headers) { | |
$headers[] = 'From: ' . 'Salon Express' . ' <info@salonexpress.com.au>'; | |
return $headers; | |
} |
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
function my_wpjm_meta_key_dm() { | |
global $wpdb, $job_manager_keyword; | |
$searchable_meta_keys[] = '_my_meta_field'; | |
return $searchable_meta_keys; | |
} | |
add_filter('job_listing_searchable_meta_keys', 'my_wpjm_meta_key_dm'); |