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() ) { |
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 el título de las pestañas de producto de WooCommerce | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com/woocommerce-snippet-cambiar-el-titulo-de-las-pestanas-de-producto/ | |
*/ | |
add_filter( 'woocommerce_product_tabs', 'oaf_wc_change_product_tabs_titles', 20); | |
function oaf_wc_change_product_tabs_titles($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 WordPress snippet: Establecer un mínimo de caracteres al comentar | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com/wordpress-snippet-establecer-un-minimo-de-caracteres-al-comentar/ | |
*/ | |
add_filter( 'preprocess_comment', 'set_minimal_length_for_comments' ); |
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 WooCommerce Snippet: Cambiar el texto de "Añadir al carrito" | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com/woocommerce-snippet-cambiar-el-texto-anadir-al-carrito/ | |
*/ | |
add_filter( 'woocommerce_product_add_to_cart_text', 'oaf_wc_change_add_to_cart_text' ); |
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 WordPress Snippet: Redirigir a los usuarios registrados a una página específica | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com/wordpress-snippet-redirigir-a-nuevos-usuarios-registrados-a-una-pagina-especifica/ | |
*/ | |
function oaf_wp_redirect_new_registrations(){ | |
return home_url( '/regalito-para-los-nuevos/' ); |
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 WordPress Snippet: Cambiar el icono del login de administración | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com/wordpress-snippet-cambiar-icono-del-login-administracion/ | |
*/ | |
function oaf_change_login_logo() { |
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 WordPress Snippet: Cambiar cambiar url logo login | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com/wordpress-snippet-cambiar-la-url-del-logo-login/ | |
*/ | |
add_filter( 'login_headerurl', 'oaf_my_login_logo_url' ); |
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 WooCommerce Snippet: Excluir categorías de la lista de categorías | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com//woocommerce-snippet-excluir-categorias-la-lista-categorias/ | |
*/ | |
add_filter( 'woocommerce_product_categories_widget_dropdown_args', 'oaf_wc_exclude_categories_from_list_widget' ); | |
add_filter( 'woocommerce_product_categories_widget_args', 'oaf_wc_exclude_categories_from_list_widget' ); |
OlderNewer