You can change slug of ‘job‘ by filter hook as following, Check the line 32. you need to put your own value for slug ‘job_slug‘
function register_post_type_job_new(){
$singular = __( 'Job', job_bm_textdomain );
$plural = __( 'Jobs', job_bm_textdomain );
$post_type= array(
'labels' => array(
'name' => $plural,
'singular_name' => $singular,
'menu_name' => __( $singular, job_bm_textdomain ),
'all_items' => sprintf( __( 'All %s', job_bm_textdomain ), $plural ),
'add_new' => __( 'Add '.$singular, job_bm_textdomain ),
'add_new_item' => sprintf( __( 'Add %s', job_bm_textdomain ), $singular ),
'edit' => __( 'Edit', job_bm_textdomain ),
'edit_item' => sprintf( __( 'Edit %s', job_bm_textdomain ), $singular ),
'new_item' => sprintf( __( 'New %s', job_bm_textdomain ), $singular ),
'view' => sprintf( __( 'View %s', job_bm_textdomain ), $singular ),
'view_item' => sprintf( __( 'View %s', job_bm_textdomain ), $singular ),
'search_items' => sprintf( __( 'Search %s', job_bm_textdomain ), $plural ),
'not_found' => sprintf( __( 'No %s found', job_bm_textdomain ), $plural ),
'not_found_in_trash' => sprintf( __( 'No %s found in trash', job_bm_textdomain ), $plural ),
'parent' => sprintf( __( 'Parent %s', job_bm_textdomain ), $singular )
),
'description' => sprintf( __( 'This is where you can create and manage %s.', job_bm_textdomain ), $plural ),
'public' => true,
'show_ui' => true,
'capability_type' => 'post',
'map_meta_cap' => true,
'publicly_queryable' => true,
'exclude_from_search' => false,
'hierarchical' => false,
'rewrite' => array( 'slug' => 'job_slug'),
'query_var' => true,
'supports' => array('title','editor','custom-fields','author'),
'show_in_nav_menus' => false,
'menu_icon' => 'dashicons-megaphone',
);
return $post_type;
}
add_filter('register_post_type_job','register_post_type_job_new');
