/var/www/html_fr/wp-content/plugins/elementor/app/modules/import-export/runners/export/plugins.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php

namespace Elementor\App\Modules\ImportExport\Runners\Export;

class 
Plugins extends Export_Runner_Base {

    public static function 
get_name() : string {
        return 
'plugins';
    }

    public function 
should_export( array $data ) {
        return (
            isset( 
$data['include'] ) &&
            
in_array'plugins'$data['include'], true ) &&
            
is_array$data['selected_plugins'] )
        );
    }

    public function 
export( array $data ) {
        
$manifest_data['plugins'] = $data['selected_plugins'];

        return [
            
'manifest' => [
                
$manifest_data,
            ],
            
'files' => [],
        ];
    }
}