Created
March 5, 2026 07:25
-
-
Save xlplugins/2a30eb8d4d547a895139d48be0c393a6 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