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', 'remove_submit_resume_form_fields' ); | |
function remove_submit_resume_form_fields( $fields ) { | |
// Unset any of the fields you'd like to remove - copy and repeat as needed | |
unset( $fields['resume_fields']['candidate_video'] ); | |
unset( $fields['resume_fields']['links'] ); | |
// And return the modified fields | |
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
function remove_subs_price_string() { | |
return ''; | |
} | |
add_filter( 'woocommerce_subscription_price_string', 'remove_subs_price_string' ); |
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
function my_remove_schedule_delete() { | |
remove_action( 'wp_scheduled_delete', 'wp_scheduled_delete' ); | |
} | |
add_action( 'init', 'my_remove_schedule_delete' ); |
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', 'alter_upload_cv_test' ); | |
function alter_upload_cv_test( $fields ) { | |
$fields['application_attachment']['label'] = 'Upload your CV/resume or any other relevant file'; | |
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_job_form_fields', 'wpjm_dont_require_app' ); | |
function wpjm_dont_require_app( $fields ) { | |
$fields['job']['application']['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( 'recipe_hero_meta_ingredients_amount', 'rhs_add_new_amount' ); | |
function rhs_add_new_amount( $amounts ) { | |
$amounts['pinch'] = 'Pinch'; | |
} | |
add_filter( 'recipe_hero_meta_ingredients_amount_default', 'rhs_set_new_amount_default' ); | |
function rhs_set_new_amount_default() { | |
return 'pinch'; | |
} |
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', 'ba_hide_shipping_continental', 10, 2 ); | |
function ba_hide_shipping_continental( $rates, $package ) { | |
global $woocommerce; | |
$excluded_states = array( 'AK','HI','GU','PR' ); | |
if( in_array( $woocommerce->customer->get_shipping_state(), $excluded_states ) ) { | |
unset( $rates['free_shipping'] ); | |
} | |
return $rates; | |
} |
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', 'remove_company_fields' ); | |
function remove_company_fields( $fields ) { | |
unset( $fields['company'] ); | |
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_action( 'single_job_listing_meta_end', 'display_country_data' ); | |
function display_country_data() { | |
global $post; | |
$country = get_post_meta( $post->ID, '_job_country', true ); | |
if ( $country ) { | |
echo '<li>' . __( 'Country:' ) . ' ' . $country . '</li>'; | |
} | |
} |
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
function fblogin() { | |
FB.login(function (response) { | |
checkLoginState(); | |
}, {scope: 'public_profile,email,user_website,user_education_history,user_work_history,user_location,user_about_me'}); | |
} |