Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

SSPA | cpt__cat_product

// Register Custom Post Type
function cpt__cat_product() {

	$labels = array(
		'name'                  => _x( 'Produkte', 'Post Type General Name', 'text_domain' ),
		'singular_name'         => _x( 'Produkt', 'Post Type Singular Name', 'text_domain' ),
		'menu_name'             => __( 'Kagegorisierung Produkte', 'text_domain' ),
		'name_admin_bar'        => __( 'Kagegorisierung Produkte', 'text_domain' ),
		'archives'              => __( 'Produkte Archiv', 'text_domain' ),
		'attributes'            => __( 'Produkt Attribute', 'text_domain' ),
		'parent_item_colon'     => __( 'Parent Item:', 'text_domain' ),
		'all_items'             => __( 'Alle Produkte', 'text_domain' ),
		'add_new_item'          => __( 'Neues Produkt hinzufügen', 'text_domain' ),
		'add_new'               => __( 'Neues Produkt hinzufügen', 'text_domain' ),
		'new_item'              => __( 'Neues Produkt', 'text_domain' ),
		'edit_item'             => __( 'Produkt bearbeiten', 'text_domain' ),
		'update_item'           => __( 'Produkt ändern', 'text_domain' ),
		'view_item'             => __( 'Produkt ansehen', 'text_domain' ),
		'view_items'            => __( 'Produkte ansehen', 'text_domain' ),
		'search_items'          => __( 'Produkt suchen', 'text_domain' ),
		'not_found'             => __( 'Nicht gefunden', 'text_domain' ),
		'not_found_in_trash'    => __( 'Produkt im Papierkorb nicht gefunden', 'text_domain' ),
		'featured_image'        => __( 'Featured Image', 'text_domain' ),
		'set_featured_image'    => __( 'Set featured image', 'text_domain' ),
		'remove_featured_image' => __( 'Remove featured image', 'text_domain' ),
		'use_featured_image'    => __( 'Use as featured image', 'text_domain' ),
		'insert_into_item'      => __( 'In Produkt einfügen', 'text_domain' ),
		'uploaded_to_this_item' => __( 'Uploaded to this item', 'text_domain' ),
		'items_list'            => __( 'Produkt Liste', 'text_domain' ),
		'items_list_navigation' => __( 'Produkt Listen Navigation', 'text_domain' ),
		'filter_items_list'     => __( 'Produkt Liste filtern', 'text_domain' ),
	);
	$args = array(
		'label'                 => __( 'Produkt', 'text_domain' ),
		'description'           => __( 'Kategorisierung Produkte', 'text_domain' ),
		'labels'                => $labels,
		'supports'              => array( 'title' ),
		'hierarchical'          => false,
		'public'                => false,
		'show_ui'               => false,
		'show_in_menu'          => true,
		'menu_position'         => 5,
		'menu_icon'             => 'dashicons-book-alt',
		'show_in_admin_bar'     => true,
		'show_in_nav_menus'     => false,
		'can_export'            => false,
		'has_archive'           => false,
		'exclude_from_search'   => true,
		'publicly_queryable'    => false,
		'rewrite'               => false,
		'capability_type'       => 'page',
	);
	register_post_type( 'cpt__cat_product', $args );

}
add_action( 'init', 'cpt__cat_product', 0 );