X7ROOT File Manager
Current Path:
/home/greejped/haldiawater.com/wp-content/plugins/case-theme-core/inc
home
/
greejped
/
haldiawater.com
/
wp-content
/
plugins
/
case-theme-core
/
inc
/
ðŸ“
..
📄
class-ajax-handle.php
(928 B)
📄
class-cpt-register.php
(7.93 KB)
📄
class-ctax-register.php
(3.3 KB)
📄
class-menu-hanlde.php
(4.23 KB)
📄
class-post-metabox.php
(31.05 KB)
📄
class-redux-extensions.php
(2.98 KB)
📄
class-taxonomy-meta.php
(22.4 KB)
ðŸ“
controls
ðŸ“
elementor
ðŸ“
extensions
ðŸ“
helpers
ðŸ“
mega-menu
ðŸ“
redux
ðŸ“
widgets
Editing: class-ajax-handle.php
<?php if (!defined('ABSPATH')) { die(); } if (!class_exists('CT_Ajax_Handle')) { class CT_Ajax_Handle { public function __construct() { add_action('wp_ajax_ct_auto_generate', array($this, 'ct_auto_generate')); } function ct_auto_generate(){ try { $result = [ 'stt' => true, 'msg' => __('Generate Successfully!', CT_TEXT_DOMAIN), 'data' => strtoupper(substr(md5(uniqid(mt_rand(), true) . ':' . microtime(true)), 5, 11)), ]; wp_send_json($result); } catch (Exception $e) { $result = [ 'stt' => false, 'msg' => $e->getMessage(), 'data' => '', ]; wp_send_json($result); } die(); } } new CT_Ajax_Handle(); }
Upload File
Create Folder