Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore login intercept hook with a filter #97

Merged
merged 2 commits into from
Feb 14, 2024

Conversation

irshadahmad21
Copy link
Contributor

@irshadahmad21 irshadahmad21 commented Feb 14, 2024

It reverses the changes made in #85 to restore the existing behavior and also provides a hook to decide which hook to use for interception.

After the change we made in #85, some users reported that the plugin did not work as before and logins failed. So, we want to restore the existing behavior.

So, if someone wants to change the hook, they can do so like this

add_filter( 'wptelegram_login_intercept_request_on', function () {
    return [ 'parse_query', 10 ];
} );

Copy link

changeset-bot bot commented Feb 14, 2024

🦋 Changeset detected

Latest commit: 7b1a33b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
wptelegram-login Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@irshadahmad21 irshadahmad21 merged commit 5b53b10 into main Feb 14, 2024
6 checks passed
@irshadahmad21 irshadahmad21 deleted the fix/restore-telegram-login-intercept-hook branch February 14, 2024 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant