bp_update_default_doc_extensions()

Description

Source

File: bp-core/bp-core-update.php

function bp_update_default_doc_extensions() {

	$get_extensions = bp_get_option( 'bp_document_extensions_support', array());

//	$changed_array = array(
//		'bb_doc_52'   => array(
//			'description' => '7z Archive XYZ',
//		)
//	);
//
//
//	if ( !empty( $changed_array ) ) {
//		foreach ( $changed_array as $k => $v ) {
//			if ( array_key_exists( $k, $get_extensions ) ) {
//				$extension = $get_extensions[$k];
//				$get_extensions[$k] = array_replace( $extension, $v );
//			} else {
//				// For newly add key.
//				$get_extensions[$k] = $v;
//			}
//		}
//	}
//
//	$removed_array = array(
//		'bb_doc_51'
//	);
//
//	if ( !empty( $removed_array ) ) {
//		foreach (  $removed_array as $key ) {
//			unset( $get_extensions[$key] );
//		}
//
//	}



	//bp_update_option( 'bp_document_extensions_support', $get_extensions );

}

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.