bp_activity_user_can_mark_spam()
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' ) ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
1.6.0 | Introduced. |