Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Inpsyde
MultilingualPress
Factory
ErrorFactory
PHP Interface Inpsyde\MultilingualPress\Factory\ErrorFactory
Since:
3.0.0
Inheritance:
extends
Inpsyde\MultilingualPress\Common\Factory
Show file
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.