No se han encontrado widgets en la barra lateral

Mínimo de compra en Woocommerce

add_action( 'woocommerce_check_cart_items', 'required_min_cart_subtotal_amount' ); function required_min_cart_subtotal_amount() { // HERE Set minimum cart total amount $minimum_amount = 250; // Total (before taxes and shipping charges) $cart_subtotal = WC()->cart->subtotal; // Add an…

Leer más

Método de pago Custom

Meter éste código en un index.php en una carpeta con el nombre del plugin, en la carpeta de plugins <?php /* Plugin Name: Pagos Locales Description: Pagos para Tienda Local…

Leer más

Reemplazar texto en wordpress

function replace_text($text) { $text = str_replace('Correo electrónico', 'replace-with-this-string', $text); return $text; } add_filter('the_content', 'replace_text');

Leer más

Clases Style del core para imágenes

/* CORE */ .alignnone { margin:0px 10px 10px 0; } .aligncenter, div.aligncenter { display:block; margin:0px auto 5px auto; } .alignright { float:right; margin:0px 0 10px 10px; } .alignleft { float:left;…

Leer más

Código del enlace de ACF

$enlace2 = $slide; if ($enlace2) { echo '<a title="'.$enlace2.'" href="'.$enlace2.'" target="" rel="noopener">'.$enlace2.'</a>'; }

Leer más

Cambiar regiones del billing

Esta función se agrega en el archivo functions.php Permite agregar manualmente tus regiones al select de woocommerce en el checkout.   function custom_woocommerce_states( $states ) { $states = array( 'XX1'…

Leer más

Desactivar comentarios

Agregar el sgte código en tu archivo functions.phpfunction disable_media_comment( $open, $post_id ) { $post = get_post( $post_id ); if( $post->post_type == 'attachment' ) { return false; } return $open; }…

Leer más

Imprimir todos los fields del checkout

Agregar éste código en el archivo functions.php del tema function custom_override_checkout_fields($fields){ print_r($fields); } add_filter('woocommerce_checkout_fields', 'custom_override_checkout_fields', 100);

Leer más

Yoast seo bradcrumbs codigo

if ( function_exists('yoast_breadcrumb') ) {yoast_breadcrumb( '<p id="breadcrumbs">','</p>' ); }

Leer más

Obtener el post_content usando un id de post

$post = get_post(12); // specific post $the_content = apply_filters('the_content', $post->post_content); if ( !empty($the_content) ) { echo $the_content; }

Leer más