shopp_error_message_debugdata

filters an error message before error handling.

add_filter( 'shopp_error_message_debugdata', [callback] )

@param string $msg the error message
@param ShoppError $ShoppError the error object

Description

filters an error message before error handling.

Example

// register filter callback
add_filter('shopp_error_message_debugdata', 'error_message_filter', 10, 2);

// create filter function
function error_message_filter( $msg, $error ) {
    if ( isset($error->code) ) $msg = $msg . " code: " . $error->code;
    return $msg;
}

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar