View functions.php
<?php
/**
* Remove Class Filter Without Access to Class Object
*
* In order to use the core WordPress remove_filter() on a filter added with the callback
* to a class, you either have to have access to that class object, or it has to be a call
* to a static method. This method allows you to remove filters with a class callback
* without having access to the object.
*
View job-filters.php
<?php
$job_locations = get_custom_field_config( 'job_location', 'options' );
if ( is_array( $job_locations ) ):
?>
<select class="" name="search_location" id="search_location">
<option value="" <?php selected( empty( $location ) || ! in_array( $location, $job_locations ) ); ?>><?php _e( 'Any Location' ); ?></option>
<?php foreach( $job_locations as $loc_val => $loc_label ): ?>
<option value="<?php echo esc_attr( $loc_val ); ?>" <?php selected( $location, $loc_val ); ?>><?php echo esc_attr( $loc_label ); ?></option>
<?php endforeach; ?>
</select>
View functions.php
<?php
/**
* When setting up the custom field, set it as a Text Box field type, click on the
* "Advanced" tab on the left, and enter the pattern below in the "Pattern" input box.
*
* This assumes that your meta key for Facebook is "company_facebook" and for instagram, is
* "company_instagram" ... if it's not, change every instance you see below to match.
*
* The patterns below will prevent the user from entering the URL, and only allow usernames
*
View functions.php
<?php
add_filter( 'field_editor_dp_skip_conversion', 'allow_fe_to_convert_job_expires' );
function allow_fe_to_convert_job_expires( $skip_fields ){
$key = array_search( 'job_expires', $skip_fields );
if( $key !== false ){
unset( $skip_fields[$key] );
View functions.php
<?php
// ^ there should only be one of these at the very top of your functions.php file.
// Omit the <?php above if adding this code to the bottom of your functions.php file (and one exists already at the top)
add_filter( 'submit_job_form_save_job_data', 'submit_listing_allow_empty_job_description', 99999, 5 );
/**
* Allow empty Listing Description (job_description) field in WP Job Manager
*
View functions.php
<?php
add_action( 'set_object_terms', 'auto_set_parent_terms', 9999, 6 );
/**
* Automatically set/assign parent taxonomy terms to posts
*
* This function will automatically set parent taxonomy terms whenever terms are set on a post,
* with the option to configure specific post types, and/or taxonomies.
*
View keybase.md

Keybase proof

I hereby claim:

  • I am tripflex on github.
  • I am tripflex (https://keybase.io/tripflex) on keybase.
  • I have a public key whose fingerprint is 04F0 8E39 26DF EE4F 9925 F352 443D 9353 7751 1C37

To claim this, I am signing this object:

View functions.php
<?php
add_filter( 'facetwp_indexer_post_facet', 'fwp_index_wpjmfe_serialized', 15, 2 );
/**
* Filter FacetWP indexing to index WP Job Manager fields
*
* Some WP Job Manager fields are saved as serialized arrays, and due to this, we need to
* make sure and unserialize that data to make it indexable. This will also index normal
* WP Job Manager fields that are not serialized.
View functions.php
<?php
/**
* This is for backwards compatibility with Field Editor 1.4.6 or older, any version 1.4.7 and newer
* will already have this function built-in, probably with some type of caching as well.
*
* If you decide to add this to your site, make sure to remove it later on if you upgrade to 1.4.7 or
* newer.
*/
if( ! function_exists( 'get_custom_field_config' ) ){
View functions.php
<?php
/**
* Recursively get taxonomy hierarchy
*
* @source http://www.daggerhart.com/wordpress-get-taxonomy-hierarchy-including-children/
* @param string $taxonomy
* @param int $parent - parent term id
*
* @return array