Created
March 5, 2026 07:25
-
-
Save xlplugins/e644f7511b38bd4d042cee5e1d8b8e3b to your computer and use it in GitHub Desktop.
razzi theme login form
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
| /** | |
| * Plugin Name: WFACP + Razzi: Suppress Duplicate Login | |
| * Description: Removes Razzi's native login/coupon block on FunnelKit checkout (PHP compatibility). | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| exit; | |
| } | |
| add_action( 'wfacp_after_checkout_page_found', function () { | |
| if ( ! class_exists( 'WFACP_Common' ) || ! class_exists( 'Razzi\WooCommerce\Template\Checkout' ) ) { | |
| return; | |
| } | |
| $cls = 'Razzi\WooCommerce\Template\Checkout'; | |
| WFACP_Common::remove_actions( 'woocommerce_before_checkout_form', $cls, 'before_login_form' ); | |
| WFACP_Common::remove_actions( 'woocommerce_before_checkout_form', $cls, 'checkout_login_form' ); | |
| WFACP_Common::remove_actions( 'woocommerce_before_checkout_form', $cls, 'checkout_coupon_form' ); | |
| WFACP_Common::remove_actions( 'woocommerce_before_checkout_form', $cls, 'after_login_form' ); | |
| }, 10 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment