Hi David,
Ok. It seems that code was already added to our bp-custom.php and that’s why it was causing the fatal error.
add_filter( 'bp_docs_get_default_access_options', 'my_change_docs_default_access_levels' );
function my_change_docs_default_access_levels( $defaults ) {
$defaults['read'] = 'anyone';
return $defaults;
}
That would mean that the code should be working, but the read option still says “doc author only” as the default option.
The bp-custom file is kept in /plugins folder.
Why would it not be working?
Tx, Robert