Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

Reply To: Adaptation of the “Members-only area” page: addition of a captcha

Дата публикации: 26-02-2026 14:53:41



Thank you for your help.
After thinking it over, I decided to create a small mu-plugin that automatically redirects people who are not logged in and try to access a restricted page to the login page.
This login page displays the correct captcha.
Kind regards



Основное содержимое страницы с новостью.

Viewing 4 replies - 1 through 4 (of 4 total)

Do you have a link to the specific “Cloudflare Turnstile” plugin that you are utilizing? I’m asking because there appears to be several plugins that are available via the WordPress plugin directory.

Wordpress plugin : simple-cloudflare-turnstile

I should point out that in the settings for this plugin, the “BuddyPress Register” checkbox is checked. The captcha is also visible on all of my forms (contact, WordPress login, etc.).

I am looking for a way to add the captcha specifically to the “Members-only area” page.

The slug you provided corresponds to the Simple CAPTCHA Alternative with Cloudflare Turnstile plugin.

The simplest solution is to force BuddyPress to use the standard WordPress login form, this can be accomplished by utilizing the bp_view_no_access_redirect_to_login_screen filter hook with a callback that returns a value of true. A one-liner approach is as follows:


add_filter( 'bp_view_no_access_redirect_to_login_screen', '__return_true' );

Thank you for your help.

After thinking it over, I decided to create a small mu-plugin that automatically redirects people who are not logged in and try to access a restricted page to the login page.

This login page displays the correct captcha.

Kind regards

Viewing 4 replies - 1 through 4 (of 4 total)

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Reply To: How to mention all members of a buddypress group (e.g. @everyone)0313-03-2026
2Age verification0524-03-2026
3Предложение на Форум2327-06-2026
4Password issue after bp_core_signup_user()0527-02-2026
5Captchas Not Showing0531-03-2026
6Güntem Temizlik replied to the topic Can not create menu for registration in the forum How-to & Troubleshooting0212-01-2026
7Reply To: Great support7327-06-2026
8Mike Witt replied to the topic Unauthenticated Arbitrary Shortcode Execution Security Vulnerability in the forum Requests & Feedback0530-01-2026
9Reply To: The font color settings issues5227-06-2026

Классификация: Общество. Схожих патентов: 0. Схожих новостей: 9. Тональность: 0. Информативность: 5. Источник: buddypress.org.