Thanks for the awesome plugin.
I am getting the Fatal error once, I redirect from Facebook.
Fatal error: Uncaught ArgumentCountError: Too few arguments to function
I have added
login_redirectfilter in my theme to redirect users to other places.
I digged more to find the cause about the Fatal error and I found the issue on plugin here:
$redirect_to = apply_filters( 'login_redirect', $redirect_to );here need to pass
3parameter according to WordPress filter mentioned here https://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect so I think it would be something like this
$redirect_to = apply_filters( 'login_redirect', $redirect_to, $requested_redirect_to, $user );
Can you check and provide me your thoughts please?
- The topic ‘Fatal Error – on login_redirect filter’ is closed to new replies.