Yo hi,
I would like to hide the Buddypress “What’s new USER” type box on Website Activity Page and also the Mediapress upload buttons on https://www.mywebsite/activity
I would like that only the activities are showing without the type box or MediaPress upload buttons.
Is there a code that I could add to hide them?
Thanks for your input.
Regards
DanielHi Daniel,
do you mean removing the label and the MediaPress buttons.You can disable uploading to activity from MediaPress settings. For label, Please let me know if it is the label or the whole posting box you want to remove and we will assit.
Regards
BrajeshHello Daniel,
Please try the following code:
add_action( 'bp_before_activity_post_form', function () { if ( bp_is_activity_directory() ) { ob_start(); } } ); add_action( 'bp_after_activity_post_form', function () { if ( bp_is_activity_directory() ) { ob_get_clean(); } } );
Let me know if it helps or not.
Regards
RaviHello Daniel,
Please replace the old code with the following one:
add_action( 'bp_before_activity_post_form', function () { if ( bp_is_activity_directory() ) { ob_start(); } } ); add_action( 'bp_after_activity_post_form', function () { if ( bp_is_activity_directory() ) { ob_get_clean(); } }, 99 );
MediaPress does hook its buttons on ‘bp_after_activity_post_form’ which is causing the issue.
Please check now.
Regards
Ravi
The topic ‘Hide the BP type box and MPP on Website Activity Page’ is closed to new replies.