??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/pyan.co.uk/wp-content/plugins/astra-sites/inc/lib/ai-builder/inc/ajax/ajax-base.php
⬅ Kembali
<?php
/**
* AiBuilder Ajax Base.
*
* @package AiBuilder
*/
namespace AiBuilder\Inc\Ajax;
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Class Admin_Menu.
*/
abstract class AjaxBase {
/**
* Ajax action prefix.
*
* @var string
*/
private $prefix = 'astra-sites';
/**
* Constructor
*
* @since 1.0.0
*/
public function __construct() {
}
/**
* Register ajax events.
*
* @param array<int, string> $ajax_events Ajax events.
*
* @return void
*/
public function init_ajax_events( $ajax_events ) {
if ( ! empty( $ajax_events ) ) {
foreach ( $ajax_events as $ajax_event ) {
add_action( 'wp_ajax_' . $this->prefix . '-' . $ajax_event, array( $this, $ajax_event ) ); // @phpstan-ignore-line
}
}
}
/**
* Get ajax error message.
*
* @param string $type Message type.
* @return string
*/
public function get_error_msg( $type ) {
if ( class_exists( 'AiBuilder\Inc\Ajax\AjaxErrors' ) && method_exists( AjaxErrors::Instance(), 'get_error_msg' ) ) {
return AjaxErrors::Instance()->get_error_msg( $type );
}
return '';
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
🐘 ajax-base.php
php
1.1 KB
2026-06-25 05:14
🐘 ajax-errors.php
php
1 KB
2026-06-25 05:14
🐘 ajax-init.php
php
1.4 KB
2026-06-25 05:14
🐘 auth.php
php
2.6 KB
2026-06-25 05:14
🐘 importer.php
php
21.3 KB
2026-06-25 05:14
🐘 plugin.php
php
11.2 KB
2026-06-25 05:14