Friday, January 27, 2023
HomeWordPress Developmentwoocommerce offtopic - Take away login fields from /customer-account web page

woocommerce offtopic – Take away login fields from /customer-account web page


I’ve a website utilizing WooCommerce and Dokan, and I’ve arrange mixed registration kind within the customer-account web page, some fields from WooCommerce and a few from Dokan.

I need to use the /customer-account web page as my registration web page after which have a seperate login web page. My plan was to only modify the look of the default WordPress login web page and perhaps use some one other URL (change it to ../login)

However my query is: How do I take away the login part fields from the default WooCommerce /customer-account web page?

I’ve tried including this to capabilities.php:

// Take away the default WooCommerce login kind from the /customer-account web page.
remove_action( 'woocommerce_before_checkout_form','woocommerce_checkout_login_form', 10 );

I’ve additionally tried this:

// Take away the default WooCommerce login kind from the /customer-account web page.
add_action( 'woocommerce_before_checkout_form', 'remove_checkout_login_form', 4 );
operate remove_checkout_login_form(){
    remove_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_login_form', 10 );
}

I’ve cleared the cache, each the native browser and all the websites.

Neither works. The login fields are nonetheless there.

Any assist extremely appreciated!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments