MagpieRSS::errorpublicWP 1.0

Method of the class: MagpieRSS{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

MagpieRSS::error() code WP 6.8.1

function error( $errormsg, $lvl = E_USER_WARNING ) {
	if ( MAGPIE_DEBUG ) {
		wp_trigger_error('', $errormsg, $lvl);
	} else {
		error_log( $errormsg, 0);
	}
}