Fetch whether the current user is allowed to mark items as spam.

Return Return

(bool) True if user is allowed to mark activity items as spam.

Source Source

File: bp-activity/bp-activity-functions.php

function bp_activity_user_can_mark_spam() {

	 * Filters whether the current user should be able to mark items as spam.
	 * @since 1.6.0
	 * @param bool $moderate Whether or not the current user has bp_moderate capability.
	return apply_filters( 'bp_activity_user_can_mark_spam', bp_current_user_can( 'bp_moderate' ) );

Top ↑

Changelog Changelog

Version Description
1.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.