Destinos
Dsetinos navegamar
if ( ! function_exists('Destinos') ) {
// Register Custom Post Type
function Destinos() {
$labels = array(
'name' => _x( 'Destinos', 'Post Type General Name', 'Destinos' ),
'singular_name' => _x( 'Destino', 'Post Type Singular Name', 'Destinos' ),
'menu_name' => __( 'Destinos', 'Destinos' ),
'name_admin_bar' => __( 'Destinos', 'Destinos' ),
'archives' => __( 'Destinos', 'Destinos' ),
'attributes' => __( 'Atributos de destino', 'Destinos' ),
'parent_item_colon' => __( 'Parent destino:', 'Destinos' ),
'all_items' => __( 'Todos los destinos', 'Destinos' ),
'add_new_item' => __( 'Añadir nuevo destino', 'Destinos' ),
'add_new' => __( 'Añade nuevo destino', 'Destinos' ),
'new_item' => __( 'Nuevo destino', 'Destinos' ),
'edit_item' => __( 'Edita destino', 'Destinos' ),
'update_item' => __( 'Actualiza destino', 'Destinos' ),
'view_item' => __( 'Ver destino', 'Destinos' ),
'view_items' => __( 'Ver destinos', 'Destinos' ),
'search_items' => __( 'Buscar destino', 'Destinos' ),
'not_found' => __( 'Destino no emcontrado', 'Destinos' ),
'not_found_in_trash' => __( 'Su destino no se encuentra en la papelera', 'Destinos' ),
'featured_image' => __( 'Imagen destino', 'Destinos' ),
'set_featured_image' => __( 'Set featured image', 'Destinos' ),
'remove_featured_image' => __( 'Remove featured image', 'Destinos' ),
'use_featured_image' => __( 'Use as featured image', 'Destinos' ),
'insert_into_item' => __( 'Insertar en destino', 'Destinos' ),
'uploaded_to_this_item' => __( 'Ver este destino', 'Destinos' ),
'items_list' => __( 'Lista de destinos', 'Destinos' ),
'items_list_navigation' => __( 'Lista de destinos', 'Destinos' ),
'filter_items_list' => __( 'Filtros de destino', 'Destinos' ),
);
$rewrite = array(
'slug' => 'destinos',
'with_front' => true,
'pages' => true,
'feeds' => true,
);
$args = array(
'label' => __( 'Destino', 'Destinos' ),
'description' => __( 'Destinos para navegar', 'Destinos' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'comments', 'revisions', 'custom-fields', 'page-attributes', ),
'taxonomies' => array( 'post_tag' ),
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-palmtree',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'rewrite' => $rewrite,
'capability_type' => 'page',
);
register_post_type( 'Destinos', $args );
}
add_action( 'init', 'Destinos', 0 );
}