Skip to content

Instantly share code, notes, and snippets.

@KaineLabs
Last active August 11, 2022 21:34
Show Gist options
  • Save KaineLabs/efd26a95e033ba00ecda0216ade2a9db to your computer and use it in GitHub Desktop.
Save KaineLabs/efd26a95e033ba00ecda0216ade2a9db to your computer and use it in GitHub Desktop.
Youzify - BuddyPress Disable Posting form on Global Activity Stream.
<?php
/**
* Youzify - BuddyPress Disable Posting form on Global Activity Stream.
*/
function yzc_disable_activity_stream_wall_form( $enable ) {
if ( bp_is_active( 'activity' ) && bp_is_activity_directory() ) {
return false;
}
return $enable;
}
add_filter( 'youzify_is_wall_posting_form_active', 'yzc_disable_activity_stream_wall_form' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment