Automator_WP_Error::trigger( $message, mixed $type = E_USER_NOTICE )


Parameters Parameters

$message

(Required)

$type

(mixed) (Optional) flag

Default value: E_USER_NOTICE


Source Source

File: src/core/lib/utilities/error/class-automator-wp-error.php

	public function trigger( $message, $type = E_USER_NOTICE ) {
		if ( defined( 'AUTOMATOR_DEBUG_MODE' ) && true === AUTOMATOR_DEBUG_MODE ) {
			trigger_error( esc_attr( $message ), $type ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error
		}
	}