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

Add Error


Parameters Parameters

$message

(Required)

$error_code

(Optional)

Default value: 'something_wrong'

$data

(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.