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; |
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 New Custom Field | |
| add_action( 'woocommerce_before_order_notes', 'wtwh_add_custom_checkout_field' ); | |
| function wtwh_add_custom_checkout_field( $checkout ) { | |
| $current_user = wp_get_current_user(); | |
| $saved_car_no = $current_user->car_no; | |
| woocommerce_form_field( 'car_no', array( | |
| 'type' => 'text', | |
| 'class' => array( 'form-row-wide' ), |
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 | |
| /*---------------------------------------------------- | |
| Set permalink to post after theme activated | |
| -----------------------------------------------------*/ | |
| add_action('after_setup_theme', 'reset_permalinks'); | |
| function reset_permalinks() | |
| { | |
| global $wp_rewrite; |
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
| //change currency symbol | |
| add_filter('woocommerce_currency_symbol', 'milon_change_currency_symbol', 10, 2); | |
| function milon_change_currency_symbol( $currency_symbol, $currency ) { | |
| switch( $currency ) { | |
| case 'KWD': $currency_symbol = 'KD'; break; | |
| } | |
| return $currency_symbol; | |
| } |
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
| /** | |
| * Function to perform setup after importing data. | |
| * This function assigns the front page and the posts page (blog page) based on the imported demo. | |
| * @param array $selected_import The selected import data. | |
| * @link https://www.codeixer.com/addressing-the-issue-of-one-click-demo-import-not-add-elementor-global-options/ | |
| */ | |
| function cdx_after_import_setup( $selected_import ) { | |
| // Import Elementor kit data. | |
| $cdx_kit_zip = get_parent_theme_file_path() . '/demo-content/elementor-kit.zip'; |
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 | |
| $feature_image = ''; | |
| if (($settings['feature_icon_type'] ?? '') == 'img') { | |
| $feature_image = Group_Control_Image_Size::get_attachment_image_html($settings, 'feature_imagesize', 'feature_image'); | |
| } | |
| $html_output = ''; | |
| $html_output .= '<div ' . $this->get_render_attribute_string('growth_feature_attr') . ' >'; | |
| if (!empty($feature_image)) { | |
| $html_output .= '<div class="feature-icon">' . $feature_image . '</div>'; |
NewerOlder