HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpdeskera/wp-content/plugins/royal-elementor-addons/classes/wpr-custom-meta-keys.php
<?php
namespace WprAddons\Classes\Modules;

use Elementor\Utils;
use Elementor\Group_Control_Image_Size;
use WprAddons\Classes\Utilities;


if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * WPR_Custom_Meta_Keys setup
 *
 * @since 3.4.6
 */

 class WPR_Custom_Meta_Keys {

    public function __construct() {
        add_action('wp_ajax_wpr_get_custom_meta_keys' , [$this, 'get_custom_meta_keys']);
        add_action('wp_ajax_nopriv_wpr_get_custom_meta_keys',[$this, 'get_custom_meta_keys']);
    }

    public function get_custom_meta_keys() {

        $nonce = $_POST['nonce'];

        if ( !wp_verify_nonce( $nonce, 'wpr-addons-editor-js' ) ) {
            return; // Get out of here, the nonce is rotten!
        }

        $keys = Utilities::get_custom_meta_keys();

        if ( empty( $keys ) ) {
            wp_send_json_error( 'No keys found' );
        } else {
            wp_send_json_success( wp_json_encode($keys[0]) );
        }
    }
 }

 new WPR_Custom_Meta_Keys();