danjjohnson
6/8/2017 - 1:46 PM

WPJM - change the job-category and job-type slugs

WPJM - change the job-category and job-type slugs

// Change the 'job-category' slug
add_filter( 'register_taxonomy_job_listing_category_args', 'change_job_listing_category_rewrite' );

function change_job_listing_category_rewrite( $options ) {
    $options['rewrite'] =  array(
        'slug'         => 'industria',
        'with_front'   => false,
        'hierarchical' => false,
    );
    return $options;
}

// Change the 'job-type' slug
add_filter( 'register_taxonomy_job_listing_type_args', 'change_job_listing_type_rewrite' );

function change_job_listing_type_rewrite( $options ) {
    $options['rewrite'] =  array(
        'slug'         => 'do-not-know',
        'with_front'   => false,
        'hierarchical' => false,
    );
    return $options;
}