RTMediaGalleryShortcode::rtmedia_query_where_filter PHP Method

rtmedia_query_where_filter() static public method

for gallery shortcode having attribute global as true, include all media except ones having context as "group"
static public rtmedia_query_where_filter ( $where, $table_name, $join )
    static function rtmedia_query_where_filter($where, $table_name, $join)
    {
        $where .= ' AND (' . $table_name . '.privacy = "0" OR ' . $table_name . '.privacy is NULL ) ';
        return $where;
    }