Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

GFS | cpt_offres

// Register Custom Post Type
function cpt_offers() {

	$labels = array(
		'name'                  => _x( 'Angebote', 'Post Type General Name', 'text_domain' ),
		'singular_name'         => _x( 'Angebot', 'Post Type Singular Name', 'text_domain' ),
		'menu_name'             => __( 'Angebote', 'text_domain' ),
		'name_admin_bar'        => __( 'Angebote', 'text_domain' ),
		'archives'              => __( 'Angebote Archiv', 'text_domain' ),
		'attributes'            => __( 'Angebote Attributes', 'text_domain' ),
		'parent_item_colon'     => __( 'Eltern Angebote', 'text_domain' ),
		'all_items'             => __( 'Alle Angebote', 'text_domain' ),
		'add_new_item'          => __( 'Neue Angebot hinzufügen', 'text_domain' ),
		'add_new'               => __( 'Neue Angebot hinzufügen', 'text_domain' ),
		'new_item'              => __( 'Neue Angebot', 'text_domain' ),
		'edit_item'             => __( 'Angebot bearbeiten', 'text_domain' ),
		'update_item'           => __( 'Angebot ändern', 'text_domain' ),
		'view_item'             => __( 'Angebot ansehen', 'text_domain' ),
		'view_items'            => __( 'Angebote ansehen', 'text_domain' ),
		'search_items'          => __( 'Angebot suchen', 'text_domain' ),
		'not_found'             => __( 'Angebot nicht gefunden', 'text_domain' ),
		'not_found_in_trash'    => __( 'Angebot 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 Angebot einfügen', 'text_domain' ),
		'uploaded_to_this_item' => __( 'Zu dieser Angebot hochgeladen', 'text_domain' ),
		'items_list'            => __( 'Angebote List', 'text_domain' ),
		'items_list_navigation' => __( 'Angebote Listen Navigation', 'text_domain' ),
		'filter_items_list'     => __( 'Filter Angebote Liste', 'text_domain' ),
	);
	$args = array(
		'label'                 => __( 'Angebot', 'text_domain' ),
		'description'           => __( 'Angebot', 'text_domain' ),
		'labels'                => $labels,
		'supports'              => array( 'title', 'revisions' ),
		'hierarchical'          => false,
		'public'                => true,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 5,
		'menu_icon'             => 'dashicons-admin-post',
		'show_in_admin_bar'     => true,
		'show_in_nav_menus'     => false,
		'can_export'            => true,
		'has_archive'           => false,
		'exclude_from_search'   => true,
		'publicly_queryable'    => false,
		'rewrite'               => false,
		'capability_type'       => 'page',
	);
	register_post_type( 'cpt_angebote', $args );

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