sfw_create_error

Description

Creates WP_Error

Since: 1.0.0

Code

<?php function sfw_create_error( $code = 'generic', $message = '', $data = '' ){ 
	 … 
 } ?>

Parameter

$code
(string) Errorcode, will be prefixed.

Default: 'generic'

$message
(string) An error message

Default: ''

$data
(mixed) Any data

Default: ''

Return

(WP_Error)

File

core/includes/functions-wp-errors.php