Method | Description | |
---|---|---|
__construct ( string $default_class = ErrorFactory::DEFAULT_CLASS ) | Constructor. Sets up the properties. | |
create ( array $args = [], string $class = '' ) : WP_Error | Returns a new WordPress error object, instantiated with the given arguments. |
public __construct ( string $default_class = ErrorFactory::DEFAULT_CLASS ) | ||
$default_class | string | Optional. Fully qualified name of the default class. Defaults to ErrorFactory::DEFAULT_CLASS. |