[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
elementor
/
app
/
modules
/
import-export
/
runners
/
export
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 elementor-content.php
3,250 B
SET
[ EDIT ]
|
[ DEL ]
📄 export-runner-base.php
720 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugins.php
558 B
SET
[ EDIT ]
|
[ DEL ]
📄 site-settings.php
2,326 B
SET
[ EDIT ]
|
[ DEL ]
📄 taxonomies.php
2,687 B
SET
[ EDIT ]
|
[ DEL ]
📄 templates.php
1,460 B
SET
[ EDIT ]
|
[ DEL ]
📄 wp-content.php
2,015 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: templates.php
<?php namespace Elementor\App\Modules\ImportExport\Runners\Export; use Elementor\Core\Base\Document; use Elementor\Plugin; use Elementor\TemplateLibrary\Source_Local; use Elementor\Utils; class Templates extends Export_Runner_Base { public static function get_name(): string { return 'templates'; } public function should_export( array $data ) { return ( Utils::has_pro() && isset( $data['include'] ) && in_array( 'templates', $data['include'], true ) ); } public function export( array $data ) { $template_types = array_values( Source_Local::get_template_types() ); $query_args = [ 'post_type' => Source_Local::CPT, 'post_status' => 'publish', 'posts_per_page' => -1, 'meta_query' => [ [ 'key' => Document::TYPE_META_KEY, 'value' => $template_types, ], ], ]; $templates_query = new \WP_Query( $query_args ); $templates_manifest_data = []; $files = []; foreach ( $templates_query->posts as $template_post ) { $template_id = $template_post->ID; $template_document = Plugin::$instance->documents->get( $template_id ); $templates_manifest_data[ $template_id ] = $template_document->get_export_summary(); $files[] = [ 'path' => 'templates/' . $template_id, 'data' => $template_document->get_export_data(), ]; } $manifest_data['templates'] = $templates_manifest_data; return [ 'files' => $files, 'manifest' => [ $manifest_data, ], ]; } }