Uname:Linux antigravity-cli 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64

Base Dir : /var/www/moonbloom

User : wp-moonbloom


403WebShell
403Webshell
Server IP : 85.155.190.233  /  Your IP : 216.73.216.103
Web Server : nginx/1.24.0
System : Linux antigravity-cli 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User : wp-moonbloom ( 1001)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/moonbloom/wp-content/plugins/kadence-starter-templates/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/moonbloom/wp-content/plugins/kadence-starter-templates/inc/class-import-elementor.php
<?php
/**
 * Class for importing elementor data.
 *
 * @package Kadence Starter Templates
 */

namespace Elementor\TemplateLibrary;

if ( ! class_exists( '\Elementor\Plugin' ) ) {
	return;
}

use Elementor\Plugin;

/**
 * Class for importing elementor data.
 */
class Kadence_Starter_Templates_Elementor_Import extends Source_Local {

	/**
	 * Update the elementor meta data.
	 *
	 * @param integer $post_id the post id to update.
	 * @param array   $data the meta data to update.
	 */
	public function import( $post_id = 0, $data = array() ) {
		if ( empty( $post_id ) || empty( $data ) ) {
			return array();
		}
		if ( ! is_array( $data ) ) {
			$data = json_decode( $data, true );
		}
		// Import the data.
		$data = $this->replace_elements_ids( $data );
		$data = $this->process_export_import_content( $data, 'on_import' );

		$document = Plugin::$instance->documents->get( $post_id );
		if ( $document ) {
			$data = $document->get_elements_raw_data( $data, true );
		}

		// Update processed meta.
		update_metadata( 'post', $post_id, '_elementor_data', $data );

		Plugin::$instance->files_manager->clear_cache();

		return $data;

	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit