bp_document_get_allowed_extension()

Return all the allowed document extensions.

Description

Return

(array)

Source

File: bp-document/bp-document-functions.php

3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
function bp_document_get_allowed_extension() {
    $extensions     = array();
    $all_extensions = bp_document_extensions_list();
    foreach ( $all_extensions as $extension ) {
        if ( isset( $extension['is_active'] ) && true === (bool) $extension['is_active'] ) {
            $extensions[] = $extension['extension'];
        }
    }
 
    return apply_filters( 'bp_document_get_allowed_extension', $extensions );
}

Changelog

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