But that way you lose your changes once you update the plugin!
The preferred way is to include in your functions.php theme file the following lines:
if(!is_admin()) {
$socialLoginInstance = YITH_WC_Social_Login_Frontend::get_instance(); // get instance of the plugin
remove_action('woocommerce_after_template_part', array($socialLoginInstance, 'social_buttons_in_checkout')); // this will remove the social icons from checkout page
remove_action('woocommerce_login_form', array($socialLoginInstance, 'social_buttons')); // this will remove the social icons from login form on the profile page of woocommerce
remove_action('register_form', array($socialLoginInstance, 'social_buttons')); // this will remove the social icons from register form on the profile page of woocommerce
remove_action('login_form', array($socialLoginInstance, 'social_buttons')); // this will remove the social icons from wp-login and wp-register forms of WordPress
}
Just leave the remove_action statements that works best for you… In your particular case the second and the third…
That’s it.
-
This reply was modified 7 years, 12 months ago by viktorivanov. Reason: Make sure the code is run on front pages only!