Skip to content

Instantly share code, notes, and snippets.

@xlplugins
Created March 5, 2026 07:25
Show Gist options
  • Select an option

  • Save xlplugins/2a30eb8d4d547a895139d48be0c393a6 to your computer and use it in GitHub Desktop.

Select an option

Save xlplugins/2a30eb8d4d547a895139d48be0c393a6 to your computer and use it in GitHub Desktop.
razzi theme login form
/**
* 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