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
| class WFACP_Do_Not_Override_Global_Checkout { | |
| private $aero_id = 0; | |
| public function __construct() { | |
| add_action( 'wfacp_changed_default_woocommerce_page', [ $this, 'actions' ] ); | |
| add_filter( 'wfacp_template_class', [ $this, 'do_not_execute_aero_checkout' ] ); | |
| add_action( 'woocommerce_checkout_update_order_review', [ $this, 'woocommerce_checkout_update_order_review' ], - 5 ); | |
| } |
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
| import { useForm } from "react-hook-form"; | |
| import { zodResolver } from "@hookform/resolvers/zod"; | |
| import * as z from "zod"; | |
| const schema = z.object({ | |
| email: z.string().email().min(2), | |
| password: z.string().min(6) | |
| }); | |
| export default function RhfFormWithZod() { |
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
| var passField = $form.find('input[data-name=password]'); | |
| passField.wrap("<div class='ff_input-group'></div>"); | |
| passField.after('<div class="ff_input-group-append"><span class="ff_input-group-text"><i style="cursor:pointer;" class="dashicons dashicons-hidden toggle-password"> </i></span></div>'); | |
| $form.find(".toggle-password").click(function() { | |
| $(this).toggleClass("dashicons-visibility dashicons-hidden"); | |
| if (passField.attr("type") == "password") { | |
| passField.attr("type", "text"); | |
| } else { |
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
| $form.on('ff_to_next_page', function(activeStep, form) { | |
| console.log(activeStep); | |
| // You can run your own JS on step change | |
| }); | |
| $form.on('ff_to_prev_page', function(activeStep, form) { | |
| console.log(activeStep); | |
| // You can run your own JS on step change | |
| }); |
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
| <!doctype html><html><head><meta charset="UTF-8"><title>Thanks for signing up</title></head><body bgcolor="#ffede3"> | |
| <table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#ffede3"><tr><td> | |
| <table width="600" align="center" cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff"><tr><td colspan="3"><a href="http://www.mailpoet.com"><img style="display:block;border:0;outline:none;-ms-interpolation-mode:bicubic;" src="https://www.mailpoet.com/wp-content/uploads/2019/01/mailpoet-logo-orange-header.png" width="600" height="118" alt="MailPoet" /></a></td></tr><tr><td width="20"></td> | |
| <td style="color:#071c6d;font-family:arial,sans-serif;font-size:15px;"> | |
| <b>Hello!</b> | |
| Thanks for signing up. |
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
| // Event on form submission success | |
| // You can paste this script to Form's custom JS Box | |
| $form.on('fluentform_submission_success', function() { | |
| // You can run your own JS and will be run on successful form submission | |
| }); |
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
| if ( !function_exists( 'yith_wcbm_shop_badge_container_start' ) && !function_exists( 'yith_wcbm_shop_badge_container_end' ) ) { | |
| add_action( 'jet-woo-builder/templates/products/before-item-thumbnail', 'yith_wcbm_shop_badge_container_start', 1 ); | |
| add_action( 'jet-woo-builder/templates/products/before-item-thumbnail', 'yith_wcbm_shop_badge_container_end', 2 ); | |
| function yith_wcbm_shop_badge_container_start() { | |
| do_action( 'yith_wcbm_theme_badge_container_start' ); | |
| } | |
| function yith_wcbm_shop_badge_container_end() { | |
| do_action( 'yith_wcbm_theme_badge_container_end' ); | |
| } | |
| } |
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
| $( document ).on( 'wc_update_cart added_to_cart', function() { | |
| var popupId = 'jet-popup-1455'; | |
| $( window ).trigger( { | |
| type: 'jet-popup-open-trigger', | |
| popupData: { | |
| popupId: popupId | |
| } | |
| } ); | |
| }); |
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
| add_action( 'jet-smart-filters/provider/epro-archive-products/before-ajax-content', 'theme_name_jet_smart_filters_compatibility' ); | |
| function theme_name_jet_smart_filters_compatibility() { | |
| if ( class_exists( 'IGN_Wholesale_Pro_Suite' ) ) { | |
| $settings = get_option( 'woocommerce_ignitewoo_wholesale_pro_suite_settings' ); | |
| if ( ! empty( $settings['login_required_for_prices'] ) && 'yes' == $settings['login_required_for_prices'] && ! is_user_logged_in() ) { | |
| if ( wp_doing_ajax() ) { |
NewerOlder