bp_core_mark_user_ham_admin( int $user_id )
Hook to WP’s make_ham_user and run our custom BP spam functions.
Description
Parameters
- $user_id
-
(Required) The user ID passed from the make_ham_user hook.
Source
File: bp-members/bp-members-functions.php
function bp_core_mark_user_ham_admin( $user_id ) { bp_core_process_spammer_status( $user_id, 'ham', false ); }
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.