Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

SSPA | cpt__vcsp_report

// Register Custom Post Type
function cpt__vcsp_report() {

	$labels = array(
		'name'                  => _x( 'Reporte', 'Post Type General Name', 'text_domain' ),
		'singular_name'         => _x( 'Report', 'Post Type Singular Name', 'text_domain' ),
		'menu_name'             => __( 'Reporte', 'text_domain' ),
		'name_admin_bar'        => __( 'Reporte', 'text_domain' ),
		'archives'              => __( 'Reporte Archiv', 'text_domain' ),
		'attributes'            => __( 'Reporte Attribute', 'text_domain' ),
		'parent_item_colon'     => __( 'Parent Item:', 'text_domain' ),
		'all_items'             => __( 'Alle Reporte', 'text_domain' ),
		'add_new_item'          => __( 'Neuen Report hinzufügen', 'text_domain' ),
		'add_new'               => __( 'Neuen Report hinzufügen', 'text_domain' ),
		'new_item'              => __( 'Neuer Report', 'text_domain' ),
		'edit_item'             => __( 'Report bearbeiten', 'text_domain' ),
		'update_item'           => __( 'Report ändern', 'text_domain' ),
		'view_item'             => __( 'Report ansehen', 'text_domain' ),
		'view_items'            => __( 'Reporte ansehen', 'text_domain' ),
		'search_items'          => __( 'Report suchen', 'text_domain' ),
		'not_found'             => __( 'Nicht gefunden', 'text_domain' ),
		'not_found_in_trash'    => __( 'Begriff 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 Report einfügen', 'text_domain' ),
		'uploaded_to_this_item' => __( 'Uploaded to this item', 'text_domain' ),
		'items_list'            => __( 'Report Liste', 'text_domain' ),
		'items_list_navigation' => __( 'Report Listen Navigation', 'text_domain' ),
		'filter_items_list'     => __( 'Report Liste filtern', 'text_domain' ),
	);
	$args = array(
		'label'                 => __( 'Report', 'text_domain' ),
		'description'           => __( 'Reports: Wertschöpfung Strukturierte 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__vcsp_report', $args );

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