__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* The ajax-specific functionality of the plugin.
*
* @package CarouselSlider
*/
namespace CarouselSlider;
defined( 'ABSPATH' ) || exit;
/**
* Ajax class
*/
class Ajax {
/**
* The instance of the class
*
* @var self
*/
protected static $instance;
/**
* Ensures only one instance of the class is loaded or can be loaded.
*
* @return self
*/
public static function init() {
if ( is_null( self::$instance ) ) {
self::$instance = new self();
add_action( 'wp_ajax_carousel_slider_test', [ self::$instance, 'test' ] );
}
return self::$instance;
}
/**
* A AJAX method just to test some data
*/
public function test() {
if ( ! current_user_can( 'manage_options' ) ) {
wp_die( 'Sorry. This link only for developer to do some testing.' );
}
var_dump( 'Testing some data on AJAX' ); // phpcs:ignore
die();
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Abstracts | Folder | 0775 |
|
|
| Admin | Folder | 0775 |
|
|
| CLI | Folder | 0775 |
|
|
| Frontend | Folder | 0775 |
|
|
| Integration | Folder | 0775 |
|
|
| Interfaces | Folder | 0775 |
|
|
| REST | Folder | 0775 |
|
|
| Supports | Folder | 0775 |
|
|
| Traits | Folder | 0775 |
|
|
| Widget | Folder | 0775 |
|
|
| Ajax.php | File | 874 B | 0775 |
|
| Api.php | File | 4.58 KB | 0775 |
|
| Assets.php | File | 5.68 KB | 0775 |
|
| Autoloader.php | File | 4.03 KB | 0775 |
|
| Helper.php | File | 13.88 KB | 0775 |
|
| Plugin.php | File | 7.41 KB | 0775 |
|
| TemplateParserBase.php | File | 4.85 KB | 0775 |
|
| TrackingData.php | File | 6.85 KB | 0775 |
|
| ViewHelper.php | File | 1.31 KB | 0775 |
|