bases
if ( ! function_exists('Bases_cpt') ) {
// Register Custom Post Type
function Bases_cpt() {
$labels = array(
'name' => _x( 'Bases', 'Post Type General Name', 'base' ),
'singular_name' => _x( 'Base', 'Post Type Singular Name', 'base' ),
'menu_name' => __( 'Bases', 'base' ),
'name_admin_bar' => __( 'Bases', 'base' ),
'archives' => __( 'base Archives', 'base' ),
'attributes' => __( 'base Attributes', 'base' ),
'parent_item_colon' => __( 'Parent base:', 'base' ),
'all_items' => __( 'All bases', 'base' ),
'add_new_item' => __( 'Add New base', 'base' ),
'add_new' => __( 'Agregar nueva base', 'base' ),
'new_item' => __( 'New base', 'base' ),
'edit_item' => __( 'Edit base', 'base' ),
'update_item' => __( 'Update base', 'base' ),
'view_item' => __( 'View base', 'base' ),
'view_items' => __( 'View bases', 'base' ),
'search_items' => __( 'Search base', 'base' ),
'not_found' => __( 'Not found', 'base' ),
'not_found_in_trash' => __( 'Not found in Trash', 'base' ),
'featured_image' => __( 'Featured Image', 'base' ),
'set_featured_image' => __( 'Set featured image', 'base' ),
'remove_featured_image' => __( 'Remove featured image', 'base' ),
'use_featured_image' => __( 'Use as featured image', 'base' ),
'insert_into_item' => __( 'Insert into base', 'base' ),
'uploaded_to_this_item' => __( 'Uploaded to this item', 'base' ),
'items_list' => __( 'bases list', 'base' ),
'items_list_navigation' => __( 'bases list navigation', 'base' ),
'filter_items_list' => __( 'Filter bases list', 'base' ),
);
$args = array(
'label' => __( 'Base', 'base' ),
'description' => __( 'Post Type Description', 'base' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail' ),
'taxonomies' => array( 'post' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-book',
'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( 'Bases', $args );
}
add_action( 'init', 'Bases_cpt', 0 );
}