You appear to be a bot. Output may be restricted
Description
Create a WordPress error
Usage
$a = OIK_libs::error( $code, $text, $data );
Parameters
- $code
- ( string ) required – Error code
- $text
- ( string ) optional – Translatable text further defining the code
- $data
- ( mixed ) optional – Additional error data
Returns
a WP_Error instanceSource
File name: oik-lib/includes/class-oik-libs.phpLines:
1 to 4 of 4
function error( $code, $text=null, $data=null ) { $error = new WP_Error( $code, $text, $data ); return( $error ); }View on GitHub