Move Social Login on user account page

// ----Move "My Social Profiles" to "dashboard" instead of "edit account" 
function wc_social_login_move_social_profiles() {

    if ( function_exists( 'wc_social_login' ) ) {
    remove_action( 'woocommerce_after_edit_account_form',  array( wc_social_login()->get_frontend_instance(), 'render_social_login_profile' ) );
    add_action( 'woocommerce_account_dashboard', array( wc_social_login()->get_frontend_instance(), 'render_social_login_profile' ) 
    );
    }
}
add_action( 'init', 'wc_social_login_move_social_profiles', 11 );

No Comments

Sorry, the comment form is closed at this time.