BuddyBoss (BuddyPress / bbPress) moderation filters not doing anything

You’ve got the bp_bypass_if_user_can_moderate arguments wrong. From the documentation you linked to it should be bool $value, int $user_id, string $title, string $content, and as normal for filters you should pass through $value if you’re not going to change it. e.g. here’s a fixed up version of your filter: add_filter( ‘bp_bypass_check_for_moderation’, ‘bbp_bypass_if_user_can_moderate’, 10, 4 ); … Read more

Can’t Find BBPress data in Database

As far as I know bbPress uses custom post types. So all the data are in the regular posts and post_meta tables. A look at the source code should tell you more. From the bbPress Codex: bbPress creates three custom post types and adds them to the navigation menu: Forums, Topics, and Replies. Use these … Read more

bbpress change the word forum, topic, reply in the forum to another word I choose

You can hook to translation filters of WordPress to change any word or phrase. These filters are: gettext, ngettext and gettext_with_context: add_filter(‘gettext’, ‘change_bbpress_wording’, 10, 3); add_filter(‘ngettext’, ‘change_bbpress_wording’, 10, 3); add_filter(‘gettext_with_context’, ‘change_bbpress_wording’, 10, 3); function change_bbpress_wording ($translated, $untranslated, $domain) { if ($domain == ‘bbpress’) { $translated = str_ireplace(‘Forum’, ‘*desired word*’, $translated ); $translated = str_ireplace(‘Topic’, ‘*desired … Read more

Why does deactivating a plugin cause error: “You do not have sufficient permissions to access this page”?

For the specific case of bbPress, it adds new user roles and capabilities, like the “Keymaster” role. Those users who had a role that was bbPress specific won’t have access to anything anymore, because after you removed the plugin, the role no longer exists. Some users have reported that using the “User Role Editor” plugin … Read more

BBpress error wp-init [closed]

I was getting this error when I enabled the WebsiteDefender WordPress Security plugin Disabling/removing this plugin solved this issue for me. That plugin calls methods like acxUtil::hideWpVersionBackend( ) without going through the WordPress add_action() which seems to be causing the issue.

How do I redirect users after submitting a replies for moderation on bbpress?

This is one of the serious flaws in bbpress, and surprisingly nobody at bbpress is interested to solve this. One work around is to download the plugin “404 solution”, after activation go to “Add Redirect”, then “Manual Redirect”, add the following as the main URL of bbpress: https://www.example.com/?post_type=topic&p=xxxx. Change your domain with your website link, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)