Skip to:
Content
Pages
Categories
Search
Top
Bottom
  • I recently got an error on the latest update because of my function:

    function mn_member_short_description() {
    $args = array(
    'field' => 'Short Description', // Field name or ID.
    );

    if ($short_description = xprofile_get_field_data($args, bp_get_member_user_id())) {
    echo esc_html($short_description);
    }
    }

    I got a notice:
    Notice:…[Read more]

  • This code allows you to sort activity from most favorited activity to least favorited activity.

    class BP_Loop_Filters {
    // Constructor
    public function __construct() {
    $this->setup_filters();
    }

    // Filters
    private function setup_filters() {
    add_filter( 'bp_activity_get_user_join_filter', array( $this, 'order_by_most_favorited' ), 10,…
    [Read more]

  • I’ve been trying to work out how to get the user IDs for the notification items so I can display notification user avatars.

    Is this the best way to do it, I’ve tested this with a few users and seems to work:

    function test_notifications_avatar() {

    $bp = buddypress();
    $user_id =…
    [Read more]

  • Andrew‘s profile was updated 3 years ago

Skip to toolbar