This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @snippet Añadir un botón de "Seguir comprando" en el carrito de WooCommerce. | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com/anadir-boton-de-seguir-comprando-en-la-pagina-del-carrito-de-woocommerce/ | |
*/ | |
add_action( 'woocommerce_before_cart_table', 'woo_add_continue_shopping_button_to_cart' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @snippet Establecer el país por defecto en el campo país del formulario "Detalles de facturación" del checkout de WooCommerce. | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com/establecer-un-pais-por-defecto-en-el-formulario-del-checkout-de-woocommerce/ | |
*/ | |
add_filter( 'default_checkout_billing_country', 'change_default_checkout_country' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @snippet Eliminar pestañas de los datos de producto de WooCommerce en el admin | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com/como-eliminar-pestanas-en-los-ajustes-de-producto-de-woocommerce/ | |
*/ | |
function remove_product_admin_data_tabs($tabs){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @snippet Eliminar pestaña avanzado de los datos de producto de WooCommerce en el admin | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com/como-eliminar-pestanas-en-los-ajustes-de-producto-de-woocommerce/ | |
*/ | |
function remove_product_admin_advanced_data_tab($tabs){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @snippet Cambiar nombre pestaña avanzado en datos de producto de WooCommerce | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com/como-renombrar-las-pestanas-de-los-datos-de-productos-en-la-edicion-de-productos-de-woocommerce/ | |
*/ | |
function change_product_admin_advanced_data_tab($tabs){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @snippet Mostrar la descripción corta de los productos en la página de inicio y en las páginas de archivo de WooCommerce | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com/mostrar-la-descripcion-de-los-productos-en-la-tienda-y-en-las-paginas-de-archivo-de-woocommerce/ | |
*/ | |
function short_desc_on_product_archives() { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @snippet Ocultar los avisos de actualizar el carrito de WooCommerce | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com/no-mostrar-los-mensajes-de-aviso-de-woocommerce-al-actualizar-el-carrito/ | |
*/ | |
// Ocultar los avisos al actualizar carrito | |
function clear_notices_on_cart_update() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @snippet Ordenar pestañas de producto de WooCommerce | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com/woocommerce-snippet-ordenar-las-pestanas-en-la-pagina-de-producto/ | |
*/ | |
add_filter( 'woocommerce_product_tabs', 'oaf_wc_change_tabs_order', 20 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @snippet Añadir texto en la parte superior del checkout de WooCommerce | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com/woocommerce-snippet-anadir-texto-o-html-en-la-parte-superior-del-checkout-finalizar-compra/ | |
*/ | |
add_action( 'woocommerce_before_checkout_form', 'add_checkout_top_text', 11 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @snippet Modificar el número de posts por página en WordPress | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com/woocommerce-snippet-anadir-texto-o-html-en-la-parte-superior-del-checkout-finalizar-compra/ | |
*/ | |
function number_of_posts_per_page( $number ) { | |
if ( is_home() ) { |