bp_activity_user_can_mark_spam()
Fetch whether the current user is allowed to mark items as spam.
Description Description
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' ) ); }
Changelog Changelog
Version | Description |
---|---|
1.6.0 | Introduced. |