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_job_dashboard_login_url', 'job_manager_custom_login_url_support' ); | |
function job_manager_custom_login_url_support( $url ) { | |
return 'http://doctors.melbourne/my-account/'; | |
} |
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_form_fields', 'message_field_not_req' ); | |
function message_field_not_req( $fields ) { | |
$fields['application_message']['required'] = false; | |
return $fields; | |
} |
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_resume_form_fields', 'make_all_resume_fields_req' ); | |
function make_all_resume_fields_req( $fields ) { | |
$fields['resume_fields']['candidate_name']['label'] .= ' *'; | |
$fields['resume_fields']['candidate_email']['label'] .= ' *'; | |
$fields['resume_fields']['candidate_title']['label'] .= ' *'; | |
$fields['resume_fields']['candidate_location']['label'] .= ' *'; | |
$fields['resume_fields']['resume_category']['label'] .= ' *'; | |
$fields['resume_fields']['resume_content']['label'] .= ' *'; | |
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', 'custom_remove_website_field' ); | |
function custom_remove_website_field( $fields ) { | |
unset( $fields['company']['company_website'] ); | |
return $fields; | |
} |
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( 'woocommerce_package_rates', 'wcsupport_no_usps_us', 10, 2 ); | |
function wcsupport_no_usps_us( $rates, $package ) { | |
if ( WC()->customer->shipping_country == 'US' ) { | |
foreach( $rates as $key => $rate ) { | |
if (strpos($key,'usps') !== false) { | |
unset( $rates[$key] ); | |
} | |
} | |
} |
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', 'frontend_add_job_expiry' ); | |
function frontend_add_job_expiry( $fields ) { | |
$fields['job']['job_expires'] = array( | |
'label' => __( 'Job Expiry', 'job_manager' ), | |
'type' => 'text', | |
'placeholder' => 'yyyy-mm-dd', | |
'priority' => 7 | |
); | |
return $fields; | |
} |
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_form_fields', 'job_application_remove_message_placeholder' ); | |
function job_application_remove_message_placeholder( $fields ) { | |
$fields[ 'application_message' ]['placeholder'] = ''; | |
return $fields; | |
} |
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
<?php | |
// Add a new field | |
add_filter( 'job_application_form_fields', 'custom_job_application_form_fields' ); | |
function custom_job_application_form_fields( $fields ) { | |
$fields[ 'your_field' ] = array( | |
'label' => 'Label for field', | |
'type' => 'text', | |
'required' => true, |
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 your own function to filter the fields | |
add_filter( 'submit_resume_form_fields', 'resume_file_required' ); | |
// This is your function which takes the fields, modifies them, and returns them | |
function resume_file_required( $fields ) { | |
// Here we target one of the job fields (candidate name) and change it's label | |
$fields['resume_fields']['resume_file']['required'] = true; | |
// And return the modified fields |
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', 'frontend_add_featured_field' ); | |
function frontend_add_featured_field( $fields ) { | |
$fields['job']['featured'] = array( | |
'label' => __( 'Feature this listing?', 'job_manager' ), | |
'type' => 'checkbox', | |
'description' => __( 'Featured listings will be sticky during searches, and can be styled differently.', 'wp-job-manager' ) | |
'priority' => 7 | |
); | |
return $fields; |