Created
July 1, 2017 12:44
-
-
Save dcavins/0f9943c2e2dd506afc58c3b56f8013c8 to your computer and use it in GitHub Desktop.
Change BP Docs default read setting.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'bp_docs_get_default_access_options', 'my_change_docs_default_access_levels' ); | |
function my_change_docs_default_access_levels( $defaults ) { | |
$defaults['read'] = 'loggedin'; | |
return $defaults; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment