WordPress at a glance
function is not described

MagpieRSS::error() public WP 1.0

{} It's a method of the class: MagpieRSS{}

No Hooks.

Return

null. Nothing.

Usage

$MagpieRSS = new MagpieRSS();
$MagpieRSS->error( $errormsg, $lvl );
$errormsg (required)
-
$lvl **
-
Default: E_USER_WARNING

Code of MagpieRSS::error() WP 5.7.2

<?php
function error( $errormsg, $lvl = E_USER_WARNING ) {
	if ( MAGPIE_DEBUG ) {
		trigger_error( $errormsg, $lvl);
	} else {
		error_log( $errormsg, 0);
	}
}