Created
August 25, 2019 01:37
-
-
Save KaineLabs/1f21a43623db1e26587406504b5e126a to your computer and use it in GitHub Desktop.
Disable Posting form on Profile Page.
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 | |
/** | |
* Disable Posting form on Profile Page. | |
*/ | |
function yzc_disable_profile_wall_form( $enable ) { | |
if ( bp_is_active( 'activity' ) && bp_is_my_profile() ) { | |
return false; | |
} | |
return $enable; | |
} | |
add_filter( 'yz_is_wall_posting_form_active', 'yzc_disable_profile_wall_form' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment