PluginProbe ʕ •ᴥ•ʔ
Gallery : FooGallery / 3.3.3
Gallery : FooGallery v3.3.3
3.3.2 3.3.3 3.3.0 3.1.31 3.1.32 3.1.34 3.1.36 3.2.0 3.2.6 trunk 1.10.3 2.0.24 2.1.34 2.2.44 2.3.3 2.4.32 3.0.6 3.1.11 3.1.12 3.1.13 3.1.20 3.1.25 3.1.26 3.1.26.1 3.1.26.2
foogallery / extensions / import-export / class-foogallery-import-export-extension.php
foogallery / extensions / import-export Last commit date
class-foogallery-export-view-helper.php 2 days ago class-foogallery-import-export-extension.php 2 days ago class-foogallery-import-export.php 2 days ago class-foogallery-import-view-helper.php 2 days ago functions.php 2 days ago view-import-export.php 2 days ago
class-foogallery-import-export-extension.php
49 lines
1 <?php
2
3 if ( ! defined( 'ABSPATH' ) ) {
4 exit;
5 }
6
7 /**
8 * FooGallery Import Export Class that registers the extension.
9 */
10
11 if ( ! class_exists('FooGallery_Import_Export_Extension') ) {
12
13 require_once 'class-foogallery-import-export.php';
14
15 class FooGallery_Import_Export_Extension {
16
17 /**
18 * FooGallery_Import_Export_Extension constructor.
19 */
20 function __construct() {
21 add_filter( 'foogallery_available_extensions', array( $this, 'register_extension' ) );
22 }
23
24 /**
25 * Register the extension
26 *
27 * @param $extensions_list
28 *
29 * @return array
30 */
31 function register_extension( $extensions_list ) {
32 $extensions_list[] = array(
33 'slug' => 'foogallery-import-export',
34 'class' => 'FooGallery_Import_Export',
35 'categories' => array( 'Utilities' ),
36 'title' => foogallery__( 'Import Export', 'foogallery' ),
37 'description' => foogallery__( 'Export your galleries, and then import them into another WordPress install.', 'foogallery' ),
38 'external_link_text' => foogallery__( 'Read documentation', 'foogallery' ),
39 'external_link_url' => 'https://fooplugins.com/documentation/foogallery/getting-started-foogallery/import-export/',
40 'dashicon' => 'dashicons-update',
41 'tags' => array( 'utils', 'free', ),
42 'source' => 'bundled'
43 );
44
45 return $extensions_list;
46 }
47 }
48 }
49