MagpieRSS::error()publicWP 1.0

Method of the class: MagpieRSS{}

No Hooks.

Return

null. Nothing (null).

Usage

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

MagpieRSS::error() code WP 6.6.2

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