Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WooCommerce Social Login: move profiles in "My Account"
<?php // only copy if needed
// 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 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.