Last active
May 27, 2020 10:53
-
-
Save wpweb101/610a6ae89f23525160e048fe9ebfd754 to your computer and use it in GitHub Desktop.
woocommerce social login force custom redirection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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