This file contains hidden or 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 | |
| add_filter( 'woocommerce_checkout_fields', function( $fields ) { | |
| // Remove fields | |
| unset( $fields['billing']['billing_last_name'] ); | |
| unset( $fields['billing']['billing_company'] ); | |
| unset( $fields['billing']['billing_country'] ); | |
| unset( $fields['billing']['billing_address_2'] ); | |
| unset( $fields['billing']['billing_city'] ); | |
| unset( $fields['billing']['billing_postcode'] ); |
This file contains hidden or 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 | |
| /** | |
| * Migrate Theme Customizations (Theme Mods) from Parent to Child. | |
| * | |
| * WordPress stores Customizer settings separately for each theme based on folder name. | |
| * When switching to a child theme, settings seem to reset. This function automatically | |
| * copies those settings from the parent theme 'hello-shoppable' exactly once. | |
| */ | |
| function hello_shoppable_child_migrate_theme_mods() { |
This file contains hidden or 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
| .blur-banner.overlay_background:after, .blur-banner.overlay_background:before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| height: 100%; | |
| width: 15%; | |
| z-index: 2; | |
| } | |
| .blur-banner.overlay_background:before { |
This file contains hidden or 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
| /* ========================================================= | |
| GLOBAL ANIMATION BASE | |
| ========================================================= */ | |
| /* animation class */ | |
| .animated { | |
| animation-duration: 0.6s; | |
| animation-fill-mode: both; | |
| animation-timing-function: ease-in-out; | |
| will-change: transform, opacity; | |
| } |
This file contains hidden or 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
| /* Use this to create a underline effect for Elementor Icon List */ | |
| li a .elementor-icon-list-text:before { | |
| background: currentColor; | |
| content: ""; | |
| bottom: 0px; | |
| right: 0; | |
| position: absolute; | |
| height: 1px; | |
| width: 0%; |
This file contains hidden or 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
| KFZUS-F3JGV-T95Y7-BXGAS-5NHHP | |
| T3ZWQ-P2738-3FJWS-YE7HT-6NA3K | |
| KFZUS-F3JGV-T95Y7-BXGAS-5NHHP | |
| 65Z2L-P36BY-YWJYC-TMJZL-YDZ2S | |
| SFZHH-2Y246-Z483L-EU92B-LNYUA | |
| GSZVS-5W4WA-T9F2E-L3XUX-68473 | |
| FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS | |
| Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4 | |
| DAZPH-G39D3-R4QY7-9PVAY-VQ6BU | |
| KLZ5G-X37YY-65ZYN-EUSV7-WPPBS |
This file contains hidden or 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 | |
| //if the user is an affiliate. Based on that, you can redirect them either to the Affiliate Area or the EDD Customer Dashboard. | |
| if ( ! function_exists( 'custom_edd_login_redirect' ) ) { | |
| function custom_edd_login_redirect( $redirect_to, $user_id ) { | |
| if ( function_exists( 'affwp_is_affiliate' ) && affwp_is_affiliate( $user_id ) ) { | |
| return site_url( '/affiliate-area/' ); | |
| } | |
| return $redirect_to; | |
| } |
This file contains hidden or 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
| DELETE u, um | |
| FROM wp_users u | |
| LEFT JOIN wp_usermeta um ON um.user_id = u.ID | |
| WHERE u.ID IN ( | |
| SELECT user_id | |
| FROM ( | |
| SELECT user_id | |
| FROM wp_usermeta | |
| WHERE meta_key = 'wp_capabilities' | |
| AND meta_value LIKE '%customer%' |
This file contains hidden or 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 | |
| add_filter( 'woocommerce_ajax_variation_threshold', function(){ | |
| return 100; | |
| }); | |
| // Add this code to your function.php file | |
| add_filter( 'woocommerce_ajax_variation_threshold', function( $quantity, $product ) { | |
| return 50; |
NewerOlder