bp_get_media_visibility()

Return the media visibility.

Description

Return

(string) The media visibility.

Source

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

998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
function bp_get_media_visibility() {
    global $media_template;
 
    /**
     * Filters the media privacy being displayed.
     *
     * @since BuddyBoss 1.2.3
     *
     * @param string $id The media privacy.
     */
    return apply_filters( 'bp_get_media_visibility', $media_template->media->visibility );
}

Changelog

Changelog
Version Description
BuddyBoss 1.2.3 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.