ihoo redakcja
// Register Custom Post Type
function redakcja_post_type() {
$labels = array(
'name' => _x( 'Redakcja', 'Post Type General Name', 'text_domain' ),
'singular_name' => _x( 'Redakcja', 'Post Type Singular Name', 'text_domain' ),
'menu_name' => __( 'Redakcja', 'text_domain' ),
'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),
'all_items' => __( 'Wszyscy redaktorzy', 'text_domain' ),
'view_item' => __( 'Zobacz:', 'text_domain' ),
'add_new_item' => __( 'Dodaj redaktora', 'text_domain' ),
'add_new' => __( 'Dodaj', 'text_domain' ),
'edit_item' => __( 'Edytuj', 'text_domain' ),
'update_item' => __( 'Aktualizacja', 'text_domain' ),
'search_items' => __( 'Szukaj', 'text_domain' ),
'not_found' => __( 'Nie znaleziono', 'text_domain' ),
'not_found_in_trash' => __( 'Brak w koszu', 'text_domain' ),
);
$args = array(
'label' => __( 'redakcja', 'text_domain' ),
'description' => __( 'Post Type Description', 'text_domain' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields', 'page-attributes', ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'show_in_nav_menus' => true,
'show_in_admin_bar' => true,
'menu_position' => 20,
'menu_icon' => 'dashicons-id',
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'redakcja', $args );
}
// Hook into the 'init' action
add_action( 'init', 'redakcja_post_type', 0 );