HEX
Server: Apache
System: Linux andromeda.lojoweb.com 4.18.0-372.26.1.el8_6.x86_64 #1 SMP Tue Sep 13 06:07:14 EDT 2022 x86_64
User: nakedfoamlojoweb (1056)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/thread-self/cwd/wp-content/plugins/elementor/modules/announcements/triggers/ai-started.php
<?php

namespace Elementor\Modules\Announcements\Triggers;

use Elementor\Modules\Announcements\Classes\Trigger_Base;
use Elementor\User;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class AiStarted extends Trigger_Base {
	/**
	 * @var string
	 */
	protected $name = 'ai-get-started-announcement';

	public function after_triggered() {
		User::set_introduction_viewed( [ 'introductionKey' => $this->name ] );
	}

	/**
	 * @return bool
	 */
	public function is_active(): bool {
		return ! User::get_introduction_meta( 'ai_get_started' ) && ! User::get_introduction_meta( $this->name );
	}
}