Action_Helpers

Trait Action_Helpers


Source Source

File: src/core/lib/recipe-parts/actions/trait-action-helpers.php

trait Action_Helpers {
	use Action_Helpers_Email;
	/**
	 * @var
	 */
	protected $error_message;
	/**
	 * @return mixed
	 */
	public function get_error_message() {
		if ( ! empty( $this->error_message ) ) {
			return join( ' ', $this->error_message );
		}
		return $this->error_message;
	}
	/**
	 * @param mixed $error_message
	 */
	public function set_error_message( $error_message ): void {
		$this->error_message[] = $error_message;
	}
}

Methods Methods