automator_wp_error( $message, mixed $error_code = 'something_wrong', mixed $data = '' )


Parameters Parameters

$message

(Required)

$error_code

(mixed) (Optional)

Default value: 'something_wrong'

$data

(mixed) (Optional)

Default value: ''


Source Source

File: src/global-functions.php

function automator_wp_error( $message, $error_code = 'something_wrong', $data = '' ) {
	Automator()->error->add_error( $error_code, $message, $data );
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0 Introduced.