Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Enable activity as wire upload with MediaPress
/**
* Enable activity wire upload with MediaPress.
*
* @param bool $can allow upload or not.
*
* @return bool
*/
function buddydev_enable_activity_wire_upload( $can ) {
if ( is_user_logged_in() && function_exists( 'bp_is_user_activity' ) && bp_is_user_activity() ) {
$can = true;
}
return $can;
}
add_filter( 'mpp_can_user_upload_to_members', 'buddydev_enable_activity_wire_upload' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.