Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save champsupertramp/c7717495aa80cbd4f95afaf30be7acb9 to your computer and use it in GitHub Desktop.
Save champsupertramp/c7717495aa80cbd4f95afaf30be7acb9 to your computer and use it in GitHub Desktop.
Ultimate Member - Social Login - change button labels in Register page
add_action( 'template_redirect', 'um_sso_090623_customization_init' );
function um_sso_090623_customization_init() {
if ( ! class_exists( 'UM' ) ) {
return;
}
if ( um_is_core_page( 'register' ) ) {
add_filter( 'um_social_login_networks', function( $providers ) {
$providers['facebook']['button'] = __( 'Continue with Facebook', 'um-social-login' );
$providers['google']['button'] = __( 'Sign up with Google', 'um-social-login' );
return $providers;
}, 999 );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment