Skip to content

Instantly share code, notes, and snippets.

@wpweb101
Last active May 27, 2020 10:53
Show Gist options
  • Select an option

  • Save wpweb101/610a6ae89f23525160e048fe9ebfd754 to your computer and use it in GitHub Desktop.

Select an option

Save wpweb101/610a6ae89f23525160e048fe9ebfd754 to your computer and use it in GitHub Desktop.
woocommerce social login force custom redirection
<?php
function woo_slg_custom_login_redirection_url( $redirect_url ) {
global $woo_slg_options, $pagenow, $woo_slg_model;
// Force to use settings page redirection url
if( ! empty($woo_slg_options['woo_slg_redirect_url']) ) {
$redirect_url = $woo_slg_options['woo_slg_redirect_url'];
}
return $redirect_url;
}
add_filter( 'woo_slg_login_redirection_url', 'woo_slg_custom_login_redirection_url' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment