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( 'job_manager_emails_send_reply_to', 'smyles_custom_reply_to' ); | |
function smyles_custom_reply_to( $reply_to ){ | |
return 'reply-to@me.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
<?php | |
add_filter( 'search_and_filtering_fields_translate_fields', 'smyles_skip_translate_fields' ); | |
function smyles_skip_translate_fields( $fields ){ | |
return array(); | |
} |
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 | |
/** | |
* Make sure the function does not exist before defining it | |
*/ | |
if( ! function_exists( 'remove_class_filter' ) ){ | |
/** | |
* Remove Class Filter Without Access to Class Object | |
* | |
* In order to use the core WordPress remove_filter() on a filter added with the callback |
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( 'field_editor_auto_populate_is_user_logged_in', 'smyles_is_user_logged_in_populate' ); | |
function smyles_is_user_logged_in_populate( $value ){ | |
return is_user_logged_in() ? 1 : 0; | |
} |
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( 'the_job_location_map_link', 'smyles_disable_output_remote_location_link', 9999, 3 ); | |
function smyles_disable_output_remote_locations( $link, $location, $post ){ | |
if( $post->_remote_position ){ | |
return apply_filters( 'the_job_location_anywhere_text', __( 'Remote', 'wp-job-manager' ) ); | |
} | |
return $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
<?php | |
add_filter('field_editor_get_custom_field_listing_meta', 'format_job_price_for_germany', 10, 4); | |
function format_job_price_for_germany($field_value, $field_slug, $listing_id, $args) { | |
// Check if the field slug is 'job_price' | |
if ($field_slug == 'job_price') { | |
// Ensure the field value is not empty and is a numeric value | |
if (!empty($field_value) && is_numeric($field_value)) { | |
// Format the number to German standards: comma for decimal and period for thousands |
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
/* This hides the gray box above job listings output */ | |
.job_filters .search_jobs { | |
display: none; | |
} | |
/* This hides the "Search Completed. Found X Matching Records." and the RSS & Reset Links */ | |
/* !important is required as javascript code unhides this element after results are returned */ | |
.job_filters .showing_jobs { | |
display: none !important; | |
} |
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 | |
function smyles_populate_post_titles( $section_data, $section_id, $section ) { | |
if ( ! isset( $section_data['fields'] ) || ! is_array( $section_data['fields'] ) ) { | |
return $section_data; | |
} | |
foreach ( $section_data['fields'] as $field_id => $field ) { | |
if ( $field['search_source'] == 'job_title' ) { |
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 your own function to filter the fields | |
add_filter( 'submit_job_form_fields', 'remove_listify_submit_job_form_fields', 9999999999 ); | |
// 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 remove_listify_submit_job_form_fields( $fields ) { | |
if( ! isset( $fields['company'] ) ) 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( 'field_editor_workscout_overview_output_csv', '__return_false' ); |
NewerOlder