Section Fullpage
if ( ! function_exists('full_page') ) {
// Register Custom Post Type
function full_page() {
$labels = array(
'name' => _x( 'Sections Fullpage', 'Post Type General Name', 'full_page' ),
'singular_name' => _x( 'Section Fullpage', 'Post Type Singular Name', 'full_page' ),
'menu_name' => __( 'Section Fullpage', 'full_page' ),
'name_admin_bar' => __( 'Section Fullpage', 'full_page' ),
'archives' => __( 'Archives Section', 'full_page' ),
'parent_item_colon' => __( 'Section parente:', 'full_page' ),
'all_items' => __( 'Toutes les sections', 'full_page' ),
'add_new_item' => __( 'Ajouter nouvelle section', 'full_page' ),
'add_new' => __( 'Ajouter nouvelle section', 'full_page' ),
'new_item' => __( 'Nouvelle Section', 'full_page' ),
'edit_item' => __( 'Modifier Section', 'full_page' ),
'update_item' => __( 'Mise à jour Section', 'full_page' ),
'view_item' => __( 'Voir la Section', 'full_page' ),
'search_items' => __( 'Chercher Section', 'full_page' ),
'not_found' => __( 'pas trouvé', 'full_page' ),
'not_found_in_trash' => __( 'pas trouvé dans la corbeille', 'full_page' ),
'featured_image' => __( 'Image mise en avant', 'full_page' ),
'set_featured_image' => __( 'Mettre une image en avant', 'full_page' ),
'remove_featured_image' => __( 'Elever image mise en avant', 'full_page' ),
'use_featured_image' => __( 'Utilser comme image mise en avant', 'full_page' ),
'insert_into_item' => __( 'Insérer dans la section', 'full_page' ),
'uploaded_to_this_item' => __( 'Uploadé à cette section', 'full_page' ),
'items_list' => __( 'Liste des section', 'full_page' ),
'items_list_navigation' => __( 'Items list navigation', 'full_page' ),
'filter_items_list' => __( 'Filter items list', 'full_page' ),
);
$args = array(
'label' => __( 'Section Fullpage', 'full_page' ),
'description' => __( 'Section Fullpage', 'full_page' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-tickets-alt',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => true,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'full_page', $args );
}
add_action( 'init', 'full_page', 0 );
}