MEC LPT Location CPT
MEC LPT (Location Performer Tech) location CPT
// Register Custom Post Type function mec_lpt_location() { $labels = array( 'name' => _x( 'LPT Lieux', 'Post Type General Name', 'mec_lpt' ), 'singular_name' => _x( 'LPT Lieu', 'Post Type Singular Name', 'mec_lpt' ), 'menu_name' => __( 'Post Types', 'mec_lpt' ), 'name_admin_bar' => __( 'Post Type', 'mec_lpt' ), 'archives' => __( 'Item Archives', 'mec_lpt' ), 'attributes' => __( 'Item Attributes', 'mec_lpt' ), 'parent_item_colon' => __( 'Parent Item:', 'mec_lpt' ), 'all_items' => __( 'All Items', 'mec_lpt' ), 'add_new_item' => __( 'Add New Item', 'mec_lpt' ), 'add_new' => __( 'Add New', 'mec_lpt' ), 'new_item' => __( 'New Item', 'mec_lpt' ), 'edit_item' => __( 'Edit Item', 'mec_lpt' ), 'update_item' => __( 'Update Item', 'mec_lpt' ), 'view_item' => __( 'View Item', 'mec_lpt' ), 'view_items' => __( 'View Items', 'mec_lpt' ), 'search_items' => __( 'Search Item', 'mec_lpt' ), 'not_found' => __( 'Not found', 'mec_lpt' ), 'not_found_in_trash' => __( 'Not found in Trash', 'mec_lpt' ), 'featured_image' => __( 'Featured Image', 'mec_lpt' ), 'set_featured_image' => __( 'Set featured image', 'mec_lpt' ), 'remove_featured_image' => __( 'Remove featured image', 'mec_lpt' ), 'use_featured_image' => __( 'Use as featured image', 'mec_lpt' ), 'insert_into_item' => __( 'Insert into item', 'mec_lpt' ), 'uploaded_to_this_item' => __( 'Uploaded to this item', 'mec_lpt' ), 'items_list' => __( 'Items list', 'mec_lpt' ), 'items_list_navigation' => __( 'Items list navigation', 'mec_lpt' ), 'filter_items_list' => __( 'Filter items list', 'mec_lpt' ), ); $args = array( 'label' => __( 'LPT Lieu', 'mec_lpt' ), 'description' => __( 'MEC LPT Location', 'mec_lpt' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'comments', 'trackbacks', 'revisions', 'custom-fields', 'page-attributes', 'post-formats' ), 'taxonomies' => array( 'mec_location' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 20, 'menu_icon' => 'dashicons-location', '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', 'show_in_rest' => true, ); register_post_type( 'lpt_location', $args ); } add_action( 'init', 'mec_lpt_location', 0 );