Tagged: user report their comment
Hello,
Awesome plugin! Everything is working great. The only problem is user can report their comments. I haven’t custom coded anything.Can you please help me fix this issue?
Suggestion:
*) Can you please add blocking feature in this plugin as it will be much easier to moderate everything in one place.Thank you.
Hello Muzammil,
Thank you for posting. Please try the following code.
/** * Modify report button args. * * @param array $args Array. * * @return array */ function buddydev_modify_report_button_args( $args ) { if ( 'bp_acomment' != $args['item_type'] ) { return $args; } if ( bp_loggedin_user_id() == bp_get_activity_comment_user_id() ) { return array(); } return $args; } add_filter( 'bpmts_report_button_args', 'buddydev_modify_report_button_args' );
Regards
Ravi
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
This topic is: resolved