How do I add languages?

I’m using Buddypress. I just want to add some kind of language tool that syncs (or updates) with the official WordPress website’s translations for plugins Plugins should come with all their language files already, all it requires is setting the language of your site which is done on install. That will set which language the … Read more

Limiting buddy press features based on membership level (PMPro)

Our docs are here: https://www.paidmembershipspro.com/add-ons/buddypress-integration/ When you edit a membership level, for the “unlock BuddyPress” settings, choose the “Yes – Give members access to specific features” option and it will show checkboxes for each BuddyPress module. This should work. Make sure the general settings for non-members are locking down everything.

Function in a wordpress shortcode

I don’t think you want the display name – it may not be unique. Try using the log-in name instead. The user name for the displayed profile: $myhope = bp_get_displayed_user_username(); The user name for the current user: $current_user = wp_get_current_user(); $myhope = $current_user->user_login;

Changing author links on homepage to buddypress profiles – without affecting ability to link to author archive throughout the site

Rather than add your filter immediately when the functions.php file loads, find actions that you can hook onto later, when you know the context of the current request, so you can add and remove filters in a targeted way. For example, you might be able to use loop_start to only affect WPBakery output in the … Read more

Return instead of echo

Look at bp_group_request_user_avatar_thumb() in this file /bp-groups/bp-groups-template.php. It has a filter hook. In your filter function, add the $html parameter and set it to false and it should return just an url to the avatar. Then you can wrap it in a href and img tag manually. Or you could write a call directly to … Read more

Buddy Press restrict the capability to edit users

Ok I got an solution for my case. Maybe a bit confusing but I did’nt saw anothere possibility to do this. If you know a better way let me know. First I hide the Edit Item in the Admin Menu: add_action( ‘admin_bar_menu’, array($this,’sa_classbook_remove_admin_bar_items’), 999 ); function sa_classbook_remove_admin_bar_items(){ global $wp_admin_bar; $wp_admin_bar->remove_node(‘user-admin’); } Then I check the … Read more

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