Filter
rpress_deprecated_function_trigger_error
On this page
Filters whether a PHP notice is triggered for a deprecated function.
Checked only when WP_DEBUG is true. The default is true for users who can manage_options. Return false to silence the notice.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$show_errors | bool | True when the current user can manage_options. |
Return value#
bool. Whether to trigger the notice.
Example#
function my_silence_deprecated_notices( $show_errors ) {
return false;
}
add_filter( 'rpress_deprecated_function_trigger_error', 'my_silence_deprecated_notices' );
Source#
Applied in:
includes/rp-core-functions.php(line 2287), in_rpress_deprecated_function()
See also#
Was this page helpful?
