bp_core_check_for_disallowed_keys( int $user_id, string $title = '', string $content = '', string $error_type = 'bool' )
Check for blocked keys.
Description Description
Parameters Parameters
- $user_id
-
(Required) User ID.
- $title
-
(Optional) The title of the content.
Default value: ''
- $content
-
(Optional) The content being posted.
Default value: ''
- $error_type
-
(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/bp-core-moderation.php
Changelog Changelog
Version | Description |
---|---|
7.0.0 | Introduced. |