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

Introduce bp_view_no_access_redirect_to_login_screen filter. #155

Closed
wants to merge 1 commit into from

Conversation

dcavins
Copy link
Contributor

@dcavins dcavins commented Aug 23, 2023

Use this filter to send the user to the site login screen when the user does not have the bp_view capability for the current screen or situation. The default behavior is for the user to be shown the content in the assets/utils/restricted-access-message.php file.

Trac ticket: #8734


This Pull Request is for code review only. Please keep all other discussion in the BuddyPress Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the WordPress Core Handbook for more details.

Copy link
Member

@imath imath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @dcavins it's looking great 👍 👌

@dcavins
Copy link
Contributor Author

dcavins commented Aug 24, 2023

Shall I commit the change?

@imath
Copy link
Member

imath commented Aug 24, 2023

Yes, we never merged PR here but rather commit on our SVN repo 😉. It will be sync here 👍.

@imath
Copy link
Member

imath commented Aug 25, 2023

This PR was "merged" into BuddyPress in: https://buddypress.trac.wordpress.org/changeset/13556

@imath imath closed this Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants