Oferty pracy
// Register Custom Post Type
function joboffer() {
$labels = array(
'name' => _x( 'Oferty pracy', 'Post Type General Name', 'elzab' ),
'singular_name' => _x( 'Oferta pracy', 'Post Type Singular Name', 'elzab' ),
'menu_name' => __( 'Oferty pracy', 'elzab' ),
'name_admin_bar' => __( 'Oferty pracy', 'elzab' ),
'archives' => __( 'Archiwum Ofert pracy', 'elzab' ),
'attributes' => __( 'Atrybuty Ofert Pracy', 'elzab' ),
'parent_item_colon' => __( 'Parent Item:', 'elzab' ),
'all_items' => __( 'Wszystkie oferty', 'elzab' ),
'add_new_item' => __( 'Dodaj nową ofertę', 'elzab' ),
'add_new' => __( 'Dodaj nową', 'elzab' ),
'new_item' => __( 'Nowa oferta pracy', 'elzab' ),
'edit_item' => __( 'Edytuj ofertę', 'elzab' ),
'update_item' => __( 'Aktualizuj ofertę', 'elzab' ),
'view_item' => __( 'Zobacz ofertę', 'elzab' ),
'view_items' => __( 'Zobacz oferty', 'elzab' ),
'search_items' => __( 'Szukaj ofert pracy', 'elzab' ),
'not_found' => __( 'Nie znaleziono ofert pracy', 'elzab' ),
'not_found_in_trash' => __( 'Nie znaleziono ofert pracy w koszu', 'elzab' ),
'featured_image' => __( 'Wyróżniona grafika', 'elzab' ),
'set_featured_image' => __( 'Ustaw wyróżnioną grafikę', 'elzab' ),
'remove_featured_image' => __( 'Usuń wyróznioną grafikę', 'elzab' ),
'use_featured_image' => __( 'Ustaw jako wyróżnioną grafikę', 'elzab' ),
'insert_into_item' => __( 'Włóż w oferty pracy', 'elzab' ),
'uploaded_to_this_item' => __( 'Wyślij w oferty pracy', 'elzab' ),
'items_list' => __( 'Lista ofert pracy', 'elzab' ),
'items_list_navigation' => __( 'Nawigacja po liście ofert pracy', 'elzab' ),
'filter_items_list' => __( 'Filtruj listę ofert pracy', 'elzab' ),
);
$rewrite = array(
'slug' => 'job-offer',
'with_front' => true,
'pages' => true,
'feeds' => true,
);
$args = array(
'label' => __( 'Oferta pracy', 'elzab' ),
'description' => __( 'Tutaj dodawaj oferty pracy', 'elzab' ),
'labels' => $labels,
'supports' => false,
'taxonomies' => array( 'category' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-admin-tools',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'rewrite' => $rewrite,
'capability_type' => 'page',
);
register_post_type( 'offer_job', $args );
}
add_action( 'init', 'joboffer', 0 );