Warning: This function has been deprecated.
bp_core_check_for_blacklist( int $user_id, string $title = '', string $content = '', string $error_type = 'bool' )
Check for blocked keys.
Description Description
Use bp_core_check_for_disallowed_keys() instead.
Parameters Parameters
- $user_id
-
(int) (Required) User ID.
- $title
-
(string) (Optional) The title of the content.
Default value: ''
- $content
-
(string) (Optional) The content being posted.
Default value: ''
- $error_type
-
(string) (Optional) The error type to return. Either 'bool' or 'wp_error'.
Default value: 'bool'
Return Return
(bool|WP_Error) True if test is passed, false if fail.
Source Source
File: bp-core/deprecated/7.0.php
function bp_core_check_for_blacklist( $user_id = 0, $title = '', $content = '', $error_type = 'bool' ) { _deprecated_function( __FUNCTION__, '7.0.0', 'bp_core_check_for_disallowed_keys()' ); return bp_core_check_for_disallowed_keys( $user_id, $title, $content, $error_type ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
7.0.0 | This function has been deprecated. |
2.6.0 | Added $error_type parameter. |
1.6.0 | Introduced. |