promocion
para gcm
if ( ! function_exists('promotion_post_type') ) { // Register Custom Post Type function promotion_post_type() { $labels = array( 'name' => _x( 'Promociones', 'Post Type General Name', 'text_domain' ), 'singular_name' => _x( 'Promocion', 'Post Type Singular Name', 'text_domain' ), 'menu_name' => __( 'Promociones', 'text_domain' ), 'name_admin_bar' => __( 'Promociones', 'text_domain' ), 'archives' => __( 'Archivos', 'text_domain' ), 'attributes' => __( 'Atributos', 'text_domain' ), 'parent_item_colon' => __( 'Parent Item:', 'text_domain' ), 'all_items' => __( 'Todas las promociones', 'text_domain' ), 'add_new_item' => __( 'Agregar promocion', 'text_domain' ), 'add_new' => __( 'Nueva promocion', 'text_domain' ), 'new_item' => __( 'Nueva promocion', 'text_domain' ), 'edit_item' => __( 'Editar promocion', 'text_domain' ), 'update_item' => __( 'Actualizar promocion', 'text_domain' ), 'view_item' => __( 'Ver promocion', 'text_domain' ), 'view_items' => __( 'Ver promociones', 'text_domain' ), 'search_items' => __( 'Buscar promocion', 'text_domain' ), 'not_found' => __( 'Promociones no encontradas', 'text_domain' ), 'not_found_in_trash' => __( 'Promocion no encontrada en la papelera', 'text_domain' ), 'featured_image' => __( 'Imagen destacada', 'text_domain' ), 'set_featured_image' => __( 'Poner imagen destacada', 'text_domain' ), 'remove_featured_image' => __( 'Quitar imagen destacada', 'text_domain' ), 'use_featured_image' => __( 'Usar como imagen destacada', 'text_domain' ), 'insert_into_item' => __( 'Insertar en promocion', 'text_domain' ), 'uploaded_to_this_item' => __( 'Actualizar en promocion', 'text_domain' ), 'items_list' => __( 'Lista de promociones', 'text_domain' ), 'items_list_navigation' => __( 'Lista de resultados', 'text_domain' ), 'filter_items_list' => __( 'Promociones filtradas', 'text_domain' ), ); $args = array( 'label' => __( 'Promocion', 'text_domain' ), 'description' => __( 'Promociones para la pagina web', 'text_domain' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields', 'post-formats' ), 'taxonomies' => array( 'Promociones', 'Oferta' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, '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( 'promotion', $args ); } add_action( 'init', 'promotion_post_type', 0 ); }