Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the acf domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/zycomsol/public_html/megawatt.com.do/wp-includes/functions.php on line 6131
HEX
HEX
Server: Apache
System: Linux host4.dnns.net 3.10.0-1160.144.1.el7.tuxcare.els4.x86_64 #1 SMP Tue Apr 7 08:40:40 UTC 2026 x86_64
User: zycomsol (1070)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: /home/zycomsol/public_html/megawatt.com.do/wp-content/plugins/rtls-media.php
<?php  
/*
Plugin Name: RTLS Post Types
Description: Agregar - Post Type - personalizados
Version: 1.0
Author: Rotulus Creative
License: GLP2
Licence URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
  
function crear_post_type_transparencia(){
	$post_type_array = array(
    array(
      'post_type_name' => 'carrouselPortada',
      'single_name'    => 'Slide Portada',
      'plural_name'    => 'Slide Portada',
      'post_type'      => 'post',
    ),
    array(
      'post_type_name' => 'carrouselmarcas',
      'single_name'    => 'Logos Marcas',
      'plural_name'    => 'Logos Marcas',
      'post_type'      => 'post',
    ),
    array(
      'post_type_name' => 'carrouselcliente',
      'single_name'    => 'Logos CLiente',
      'plural_name'    => 'Logos Clientes',
      'post_type'      => 'post',
    ),
    array(
    	'post_type_name' => 'producto',
    	'single_name'    => 'Producto',
    	'plural_name'    => 'Productos',
    	'post_type'      => 'post',
    ),
    // array(
    //   'post_type_name' => 'cliente',
    //   'single_name'    => 'Nuestro Cliente',
    //   'plural_name'    => 'Nuestros Clientes',
    //   'post_type'      => 'post',
    // ),
    // array(
    //   'post_type_name' => 'marca',
    //   'single_name'    => 'Nuestra Marca',
    //   'plural_name'    => 'Nuestras Marcas',
    //   'post_type'      => 'post',
    // )
  );
	foreach( $post_type_array as $posttypearray ){
        
        register_post_type($posttypearray['post_type_name'],
        
        array(
            'labels'               => array(
                  'name'                    => _x($posttypearray['plural_name'], 'post type general name'),
                  'singular_name'           => _x($posttypearray['single_name'], 'post type singular name'),
                  'add_new'                 => _x('Añadir', $posttypearray['plural_name']),
                  'add_new_item'            => __('Añadir nuevo ' . $posttypearray['single_name']),
                  'edit_item'               => __('Editar ' . $posttypearray['single_name']),
                  'new_item'                => __('Nueva ' . $posttypearray['single_name']),
                  'view_item'               => __('Ver ' . $posttypearray['single_name']),
                  'search_items'            => __('Buscar ' . $posttypearray['single_name']),
                  'not_found'               => __('No se han encontrado '. $posttypearray['plural_name']),
                  'not_found_in_trash'      => __('No se han encontrado ' . $posttypearray['plural_name'] . ' en la papelera'),
                  'menu_name'               => $posttypearray['plural_name']
            ),
            'public'               => true,
            'publicly_queryable'   => true,
            'show_ui'              => true,
            'show_in_menu'         => true,
            'query_var'            => true,
            'rewrite'              => array('slug' => $posttypearray['post_type_name']),
            'capability_type'      => 'post',
            'has_archive'          => true,
            'menu_icon'            => 'dashicons-index-card',
            'hierarchical'         => false,
            'menu_position'        => null,
            'exclude_from_search'  => false,
            'taxonomies'           => array('category', 'post_tag'),
            'supports'             => array('title','editor','author','thumbnail','excerpt','comments','page-attributes')
            )

        );
    }
}

add_action('init','crear_post_type_transparencia', 0);



function cliente_init() {

	register_taxonomy(
    'carrouselPortada',
    'carrouselPortada',
    array(
      'label' => __( 'Nueva Imagen' ),
      'show_ui' => true,
      'hierarchical' => false,
      'show_admin_column' => true,
      'rewrite' => array( 'slug' => 'slide-portada' )
      
    )
  );
  register_taxonomy(
    'carrouselmarcas',
    'carrouselmarcas',
    array(
      'label' => __( 'Nueva Imagen' ),
      'show_ui' => true,
      'hierarchical' => false,
      'show_admin_column' => true,
      'rewrite' => array( 'slug' => 'slide-marcas' )
      
    )
  );
  register_taxonomy(
    'carrouselcliente',
    'carrouselcliente',
    array(
      'label' => __( 'Nueva Imagen' ),
      'show_ui' => true,
      'hierarchical' => false,
      'show_admin_column' => true,
      'rewrite' => array( 'slug' => 'slide-marcas' )
      
    )
  );
  register_taxonomy(
    'producto',
    'producto',
    array(
      'label' => __( 'Nuevo Producto' ),
      'show_ui' => true,
      'hierarchical' => false,
      'show_admin_column' => true,
      'rewrite' => array( 'slug' => 'productos' )
      
    )
  );
  register_taxonomy(
    'cliente',
    'cliente',
    array(
      'label' => __( 'Nuevo Cliente' ),
      'show_ui' => true,
      'hierarchical' => false,
      'show_admin_column' => true,
      'rewrite' => array( 'slug' => 'clientes' )
      
    )
  );
  register_taxonomy(
		'marca',
		'marca',
		array(
			'label' => __( 'Nueva Marca' ),
			'show_ui' => true,
			'hierarchical' => false,
			'show_admin_column' => true,
			'rewrite' => array( 'slug' => 'marca' )
			
		)
	);
}
add_action( 'init', 'cliente_init' );





?>