bp_core_mark_user_spam_admin( int $user_id )

Hook to WP’s make_spam_user and run our custom BP spam functions.

Description

Parameters

$user_id

(Required) The user ID passed from the make_spam_user hook.

Source

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

function bp_core_mark_user_spam_admin( $user_id ) {
	bp_core_process_spammer_status( $user_id, 'spam', false );
}

Changelog

Changelog
Version Description
BuddyPress 1.6.0 Introduced.

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.