How to Integrate YITH Social Login with WooFood Theme

If you want to use Social Login by YITH and you are using WooFood theme ,copy and paste the following snippet inside functions.php on your child theme.

if(!is_admin())
{
add_action( 'woofood_login_popup_after_register', array( YITH_WC_Social_Login_Frontend(), 'social_buttons' ) );
add_action( 'woofood_login_popup_after_login', array( YITH_WC_Social_Login_Frontend(), 'social_buttons' ) );
}

The above code will make social login buttons appearing both on Login and Register section inside popup