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
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 functions.php
<?php
add_action( 'submit_job_form_start', 'my_custom_jquery_set_field_readonly' );
function my_custom_jquery_set_field_readonly(){
/**
* Replace FIELD_META_KEY with the meta key of the field you want to set as readonly.
* If you want to set it as disabled instead, just change 'readonly' to 'disabled'
*/
echo "<script>jQuery(function($){ $('#FIELD_META_KEY').prop('readonly', true); });</script>";
View functions.php
<?php
add_filter( 'get_post_metadata', 'my_custom_url_prepend_value', 99999, 4 );
/**
* Get Meta Filter
*
* Filter the get_metadata function to return specific value we
* customize.
*
View functions.php
<?php
if( ! function_exists( 'array_insert' ) ) {
/**
* Insert an array into another array before/after a certain key
*
* @param array $array The initial array
* @param array $pairs The array to insert
* @param string $key The certain key
* @param string $position Wether to insert the array before or after the key