We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73c4a73 commit 66697bcCopy full SHA for 66697bc
classes/shortcodes/class-shortcode-login.php
@@ -69,8 +69,8 @@ public static function init() {
69
// Need to look at the URL the way it will end up in wp_redirect()
70
$redirect_to = wp_sanitize_redirect($redirect_to);
71
$redirect_to = wp_validate_redirect($redirect_to, home_url('/'));
72
-
73
- wp_redirect( $redirect_to );
+
+ wp_redirect( apply_filters( 'mpt_login_redirect', $redirect_to ) );
74
exit();
75
}
76
0 commit comments