PHP Interface Inpsyde\MultilingualPress\Factory\ErrorFactory

Since: 3.0.0
Inheritance: extends Inpsyde\MultilingualPress\Common\Factory
Datei anzeigen Open project: inpsyde/multilingual-press

Public Methods

Method Description
create ( array $args = [], string $class = '' ) : WP_Error Returns a new WordPress error object, instantiated with the given arguments.

Method Details

create() public method

Returns a new WordPress error object, instantiated with the given arguments.
Since: 3.0.0
public create ( array $args = [], string $class = '' ) : WP_Error
$args array Optional. Constructor arguments. Defaults to empty array.
$class string Optional. Fully qualified class name. Defaults to empty string.
return WP_Error WordPress error object.