Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.112.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : AI.php
<?php

// phpcs:disable Generic.Commenting.DocComment.MissingShort
/** @noinspection PhpIllegalPsrClassPathInspection */
/** @noinspection AutoloadingIssuesInspection */
// phpcs:enable Generic.Commenting.DocComment.MissingShort

namespace WPForms\Pro\Integrations\AI;

use WPForms\Integrations\AI\AI as LiteAI;
use WPForms\Pro\Integrations\AI\Admin\Builder\Enqueues;
use WPForms\Pro\Integrations\AI\Admin\Pages\Templates;
use WPForms\Pro\Integrations\AI\Admin\Ajax\Forms;

/**
 * Integration of the AI features in Pro.
 *
 * @since 1.9.2
 */
final class AI extends LiteAI {

	/**
	 * Load the integration classes.
	 *
	 * @since 1.9.2
	 */
	public function load() {

		parent::load();

		if ( wpforms_is_admin_page( 'builder' ) ) {
			( new Enqueues() )->init();
		}

		if ( wpforms_is_admin_page( 'templates' ) ) {
			( new Templates() )->init();
		}
	}

	/**
	 * Load AJAX classes.
	 *
	 * @since 1.9.2
	 */
	protected function load_ajax_classes() { // phpcs:ignore Generic.CodeAnalysis.UselessOverridingMethod.Found

		parent::load_ajax_classes();

		( new Forms() )->init();
	}
}
© 2025 XylotrechusZ