Skip to content

Instantly share code, notes, and snippets.

View oscarhugopaz's full-sized avatar
🍔
Siempre tengo hambre

Oscar Hugo Paz oscarhugopaz

🍔
Siempre tengo hambre
View GitHub Profile
@oscarhugopaz
oscarhugopaz / remove-wc-zoom-lightbox
Created June 7, 2022 18:50
remove-wc-zoom-lightbox #wc
remove_theme_support( 'wc-product-gallery-zoom' );
remove_theme_support( 'wc-product-gallery-lightbox' );
@oscarhugopaz
oscarhugopaz / change-url-via-db
Created December 23, 2021 21:04
change-url-via-db #sql
UPDATE wp_options SET option_value = replace(option_value, 'http://dominio.com', 'https://dominio.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://dominio.com','https://dominio.com');
UPDATE wp_posts SET post_content = replace(post_content, 'http://dominio.com', 'https://dominio.com');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://dominio.com','https://dominio.com');