Skip to content
Docs
Get RestroPress

Filter

rpress_deprecated_function_trigger_error

Updated
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#

ParameterTypeDescription
$show_errorsboolTrue 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?