CTD | cpt_recieps
// Register Custom Post Type
function cpt_recieps() {
$labels = array(
'name' => _x( 'Rezepte', 'Post Type General Name', 'cantadou' ),
'singular_name' => _x( 'Rezept', 'Post Type Singular Name', 'cantadou' ),
'menu_name' => __( 'Rezepte', 'cantadou' ),
'name_admin_bar' => __( 'Rezepte', 'cantadou' ),
'archives' => __( 'Rezepte Archiv', 'cantadou' ),
'attributes' => __( 'Rezept Attribute', 'cantadou' ),
'parent_item_colon' => __( 'Eltern Rezept', 'cantadou' ),
'all_items' => __( 'Alle Rezepte', 'cantadou' ),
'add_new_item' => __( 'Neues Rezept hinzufügen', 'cantadou' ),
'add_new' => __( 'Neues Rezept hinzufügen', 'cantadou' ),
'new_item' => __( 'Neues Rezept', 'cantadou' ),
'edit_item' => __( 'Rezept bearbeiten', 'cantadou' ),
'update_item' => __( 'Rezept ändern', 'cantadou' ),
'view_item' => __( 'Rezept ansehen', 'cantadou' ),
'view_items' => __( 'Rezept ansehen', 'cantadou' ),
'search_items' => __( 'Rezept suchen', 'cantadou' ),
'not_found' => __( 'Rezept nicht gefunden', 'cantadou' ),
'not_found_in_trash' => __( 'Rezept im Papierkorb nicht gefunden', 'cantadou' ),
'featured_image' => __( 'Featured Image', 'cantadou' ),
'set_featured_image' => __( 'Set featured image', 'cantadou' ),
'remove_featured_image' => __( 'Remove featured image', 'cantadou' ),
'use_featured_image' => __( 'Use as featured image', 'cantadou' ),
'insert_into_item' => __( 'In Rezept einfügen', 'cantadou' ),
'uploaded_to_this_item' => __( 'Zu diesem Rezept hochgeladen', 'cantadou' ),
'items_list' => __( 'Rezepte Liste', 'cantadou' ),
'items_list_navigation' => __( 'Rezepte Listen Navigation', 'cantadou' ),
'filter_items_list' => __( 'Rezepte Liste filtern', 'cantadou' ),
);
$rewrite = array(
'slug' => 'rezept',
'with_front' => true,
'pages' => true,
'feeds' => false,
);
$args = array(
'label' => __( 'Rezept', 'cantadou' ),
'description' => __( 'Rezepte', 'cantadou' ),
'labels' => $labels,
'supports' => array( 'title', 'revisions' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-text-page',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => false,
'exclude_from_search' => false,
'publicly_queryable' => true,
'rewrite' => $rewrite,
'capability_type' => 'page',
'show_in_rest' => false,
);
register_post_type( 'cpt_recieps', $args );
}
add_action( 'init', 'cpt_recieps', 0 );