Skip to content

Instantly share code, notes, and snippets.

@dcavins
Last active November 9, 2022 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcavins/06364c06c1b47aa72512a25d103b6350 to your computer and use it in GitHub Desktop.
Save dcavins/06364c06c1b47aa72512a25d103b6350 to your computer and use it in GitHub Desktop.
Enable BuddyPress Docs folders for all contexts (not just groups which is the default)
<?php
// Enables folders for group, user, and global doc directories.
add_filter( 'bp_docs_enable_folders_for_current_context', '__return_true' );
// Shows the folder metabox on the doc edit screen.
add_filter( 'bp_docs_folders_force_metabox', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment