You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sharing the bug report identified by one of our Sensei Agency users:
Hi Sensei.
We're investigating an issue where several bits of functionality in other plugins no longer work with Sensei installed. We've tracked this down to a function called "teacher_login_redirect" in Sensei's "Sensei_Teacher" class.
In this function, a redirect is executed, followed by a call to "exit;". This function is attached to WordPress's "wp_login" hook with a priority of 10. Other functions attached to this hook are not executed because Sensei does a redirect+exit.
For example, we use a plugin to track the last time a user logs in. This uses the same hook, with the same priority (10 is very common, and the default value). This plugin no longer registers login events. Several other plugins have similar problems.
Would it be possible to use a higher priority number in Sensei, so other 3rd party code is more likely to be executed before the redirect happens? Or perhaps there's a more elegant solution?
I'd really appreciate it if you'd consider changing the priority in Sensei's code. It seems illogical to me to ask clients to fix this, forcing them to write custom plugins or edit theme files that get overwritten with updates. We are certainly able to, but that may not be the case with other customers.
Thank you.
The text was updated successfully, but these errors were encountered:
Sharing the bug report identified by one of our Sensei Agency users:
Hi Sensei.
We're investigating an issue where several bits of functionality in other plugins no longer work with Sensei installed. We've tracked this down to a function called "teacher_login_redirect" in Sensei's "Sensei_Teacher" class.
In this function, a redirect is executed, followed by a call to "exit;". This function is attached to WordPress's "wp_login" hook with a priority of 10. Other functions attached to this hook are not executed because Sensei does a redirect+exit.
For example, we use a plugin to track the last time a user logs in. This uses the same hook, with the same priority (10 is very common, and the default value). This plugin no longer registers login events. Several other plugins have similar problems.
Would it be possible to use a higher priority number in Sensei, so other 3rd party code is more likely to be executed before the redirect happens? Or perhaps there's a more elegant solution?
I'd really appreciate it if you'd consider changing the priority in Sensei's code. It seems illogical to me to ask clients to fix this, forcing them to write custom plugins or edit theme files that get overwritten with updates. We are certainly able to, but that may not be the case with other customers.
Thank you.
The text was updated successfully, but these errors were encountered: