bp_core_get_status_sql( string|bool $prefix = false )
Get SQL chunk for filtering spam users from member queries.
Description
Parameters
- $prefix
-
(Optional) Global table prefix.
Default value: false
Return
(string) SQL chunk.
Source
File: bp-core/bp-core-wpabstraction.php
function bp_core_get_status_sql( $prefix = false ) { if ( !is_multisite() ) return "{$prefix}user_status = 0"; else return "{$prefix}spam = 0 AND {$prefix}deleted = 0 AND {$prefix}user_status = 0"; }
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.