bp_activity_filter_media_scope( array $retval = array(), array $filter = array() )

Set up activity arguments for use with the ‘media’ scope.

Description

Parameters

$retval

(Optional) Empty array by default.

Default value: array()

$filter

(Optional) Current activity arguments.

Default value: array()

Return

(array) $retval

Source

File: bp-media/bp-media-filters.php

1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
function bp_activity_filter_media_scope( $retval = array(), $filter = array() ) {
 
    $retval = array(
        'relation' => 'AND',
        array(
                'column'  => 'privacy',
                'value'   => 'media',
                'compare' => '=',
        ),
        array(
                'column' => 'hide_sitewide',
                'value'  => 1,
        ),
    );
 
    return $retval;
}

Changelog

Changelog
Version Description
BuddyBoss 1.4.2 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.