clientes ploporangestudio cpt
if ( ! function_exists('clientes_plop') ) {
// Register Custom Post Type
function clientes_plop() {
$labels = array(
'name' => _x( 'Clientes', 'Post Type General Name', 'clientes_ploporange' ),
'singular_name' => _x( 'Cliente', 'Post Type Singular Name', 'clientes_ploporange' ),
'menu_name' => __( 'Clientes Plop', 'clientes_ploporange' ),
'name_admin_bar' => __( 'Clientes Plop', 'clientes_ploporange' ),
'archives' => __( 'Archivo de Clientes Plop', 'clientes_ploporange' ),
'attributes' => __( 'Artibutos de Clientes Plop', 'clientes_ploporange' ),
'parent_item_colon' => __( 'Cliente Plop', 'clientes_ploporange' ),
'all_items' => __( 'Todos los Clientes Plop', 'clientes_ploporange' ),
'add_new_item' => __( 'Añadir Nuevo Clientes Plop', 'clientes_ploporange' ),
'add_new' => __( 'Añadir Nuevo Cliente Plop', 'clientes_ploporange' ),
'new_item' => __( 'Nuevo Cliente Plop', 'clientes_ploporange' ),
'edit_item' => __( 'Editar Cliente Plop', 'clientes_ploporange' ),
'update_item' => __( 'Actualizar Cliente Plop', 'clientes_ploporange' ),
'view_item' => __( 'Ver Cliente Plop', 'clientes_ploporange' ),
'view_items' => __( 'Ver Cliente Plop', 'clientes_ploporange' ),
'search_items' => __( 'Buscar Cliente Plop', 'clientes_ploporange' ),
'not_found' => __( 'Cliente no encontrado', 'clientes_ploporange' ),
'not_found_in_trash' => __( 'Cliente no encontrado en Trash', 'clientes_ploporange' ),
'featured_image' => __( 'Imagen Destacada', 'clientes_ploporange' ),
'set_featured_image' => __( 'Añadir Imagen Destacada', 'clientes_ploporange' ),
'remove_featured_image' => __( 'Quitar Imagen Destacada', 'clientes_ploporange' ),
'use_featured_image' => __( 'Usar como Imagen Destacada', 'clientes_ploporange' ),
'insert_into_item' => __( 'Insertar en Cliente Plop', 'clientes_ploporange' ),
'uploaded_to_this_item' => __( 'Subido a este Cliente Plop', 'clientes_ploporange' ),
'items_list' => __( 'Items list', 'clientes_ploporange' ),
'items_list_navigation' => __( 'Items list navigation', 'clientes_ploporange' ),
'filter_items_list' => __( 'Filter items list', 'clientes_ploporange' ),
);
$rewrite = array(
'slug' => 'clientes-ploporangestudio',
'with_front' => true,
'pages' => true,
'feeds' => true,
);
$args = array(
'label' => __( 'Cliente', 'clientes_ploporange' ),
'description' => __( 'Clientes de PlopOrange.Studio', 'clientes_ploporange' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'revisions', 'custom-fields', 'page-attributes', 'post-formats' ),
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-star-empty',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => 'clientes-ploporangestudio',
'exclude_from_search' => false,
'publicly_queryable' => true,
'query_var' => 'clientes_ploporange_query',
'rewrite' => $rewrite,
'capability_type' => 'page',
'show_in_rest' => true,
);
register_post_type( 'clients_ploporange', $args );
}
add_action( 'init', 'clientes_plop', 0 );
}