????JFIF??x?x????'
| Server IP : 172.67.174.47 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /././home/./tempvsty/eaabusiness.com/wp-content/plugins/social-icons/includes/ |
Upload File : |
<?php
/**
* Social Icons SI_AJAX
*
* AJAX Event Handler
*
* @class SI_AJAX
* @version 1.4.0
* @package Social_Icons/Classes
* @category Class
* @author ThemeGrill
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* SI_AJAX Class
*/
class SI_AJAX {
/**
* Hooks in ajax handlers
*/
public static function init() {
self::add_ajax_events();
}
/**
* Hook in methods - uses WordPress ajax handlers (admin-ajax)
*/
public static function add_ajax_events() {
// social_icons_EVENT => nopriv
$ajax_events = array(
'rated' => false,
);
foreach ( $ajax_events as $ajax_event => $nopriv ) {
add_action( 'wp_ajax_social_icons_' . $ajax_event, array( __CLASS__, $ajax_event ) );
if ( $nopriv ) {
add_action( 'wp_ajax_nopriv_social_icons_' . $ajax_event, array( __CLASS__, $ajax_event ) );
}
}
}
/**
* Triggered when clicking the rating footer.
*/
public static function rated() {
if ( ! current_user_can( 'manage_options' ) ) {
die( -1 );
}
update_option( 'social_icons_admin_footer_text_rated', 1 );
die();
}
}
SI_AJAX::init();