apply_filters( 'bp_invalid_role_selection_extended_profile' )

In configs where BuddyPress is not network activated, regular admins cannot mark a user as a spammer on front end. This prevent them to do it in the back end.

Description

Also prevent admins from marking themselves or other admins as spammers.

Source

File: bp-members/classes/class-bp-members-admin.php

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.