Last active
August 11, 2022 21:34
-
-
Save KaineLabs/efd26a95e033ba00ecda0216ade2a9db to your computer and use it in GitHub Desktop.
Youzify - BuddyPress Disable Posting form on Global Activity Stream.
This file contains 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 | |
/** | |
* 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