Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Destinations

// Register Custom Post Type
function custom_post_type_destinations() {

	$labels = array(
		'name'                  => _x( 'Destinations', 'Post Type General Name', 'benemareyachting' ),
		'singular_name'         => _x( 'Destination', 'Post Type Singular Name', 'benemareyachting' ),
		'menu_name'             => __( 'Destinations', 'benemareyachting' ),
		'name_admin_bar'        => __( 'Destinations', 'benemareyachting' ),
		'archives'              => __( 'Destinations Archives', 'benemareyachting' ),
		'attributes'            => __( 'Destinations Attributes', 'benemareyachting' ),
		'parent_item_colon'     => __( 'Parent Item:', 'benemareyachting' ),
		'all_items'             => __( 'Toutes les destinations', 'benemareyachting' ),
		'add_new_item'          => __( 'Ajouter une nouvelle destination', 'benemareyachting' ),
		'add_new'               => __( 'Ajouter une destination', 'benemareyachting' ),
		'new_item'              => __( 'Nouvelle destination', 'benemareyachting' ),
		'edit_item'             => __( 'Modifier la destination', 'benemareyachting' ),
		'update_item'           => __( 'Modifier la destination', 'benemareyachting' ),
		'view_item'             => __( 'Voir la destination', 'benemareyachting' ),
		'view_items'            => __( 'Voir les destinations', 'benemareyachting' ),
		'search_items'          => __( 'Rechercher une destination', 'benemareyachting' ),
		'not_found'             => __( 'Aucun résultat', 'benemareyachting' ),
		'not_found_in_trash'    => __( 'Aucun résultat dans la corbeille', 'benemareyachting' ),
		'featured_image'        => __( 'Image', 'benemareyachting' ),
		'set_featured_image'    => __( 'Ajouter une image', 'benemareyachting' ),
		'remove_featured_image' => __( 'Supprimer l'image', 'benemareyachting' ),
		'use_featured_image'    => __( 'Utiliser cette image', 'benemareyachting' ),
		'insert_into_item'      => __( 'Insérer dans la destination', 'benemareyachting' ),
		'uploaded_to_this_item' => __( 'Uploader dans la destination', 'benemareyachting' ),
		'items_list'            => __( 'Liste des destinations', 'benemareyachting' ),
		'items_list_navigation' => __( 'Liste de naviguation des destinations', 'benemareyachting' ),
		'filter_items_list'     => __( 'Liste des filtres de destinations', 'benemareyachting' ),
	);
	$args = array(
		'label'                 => __( 'Destination', 'benemareyachting' ),
		'description'           => __( 'Les destinations', 'benemareyachting' ),
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', 'thumbnail' ),
		'hierarchical'          => false,
		'public'                => true,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 5,
		'menu_icon'             => 'dashicons-admin-site-alt',
		'show_in_admin_bar'     => true,
		'show_in_nav_menus'     => true,
		'can_export'            => true,
		'has_archive'           => true,
		'exclude_from_search'   => false,
		'publicly_queryable'    => true,
		'capability_type'       => 'page',
	);
	register_post_type( 'destination', $args );

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