The max file size upload information is wrong inside the Media Library
imath opened this issue · comments
The BP Attachments plugin is using the bp_attachments_get_max_upload_file_size()
BuddyPress function to get the max upload file size.
To raise or lower it, you can use this filter:
function filter_example_bp_attachments_get_max_upload_file_size( $max_file_size, $type = '' ) {
if ( 'media' === $type ) {
$max_file_size = wp_max_upload_size();
}
return $max_file_size;
}
add_filter( 'bp_attachments_get_max_upload_file_size', 'filter_example_bp_attachments_get_max_upload_file_size', 10, 2 );