PluginProbe ʕ •ᴥ•ʔ
Advanced Import / 1.3.0
Advanced Import v1.3.0
trunk 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 2.0.0
advanced-import / example.php
advanced-import Last commit date
admin 5 years ago assets 5 years ago includes 5 years ago languages 5 years ago LICENSE.txt 5 years ago advanced-import.php 5 years ago example.php 5 years ago index.php 5 years ago readme.txt 5 years ago uninstall.php 5 years ago
example.php
84 lines
1 <?php
2 function prefix_demo_import_lists() {
3 $demo_lists = array(
4 'demo1' => array(
5 'title' => __( 'Title 1', 'text-domain' ), /*Title*/
6 'is_pro' => false, /*Is Premium*/
7 'type' => 'gutentor', /*Optional eg gutentor, elementor or other page builders or type*/
8 'author' => __( 'Gutentor', 'text-domain' ), /*Author Name*/
9 'keywords' => array( 'medical', 'multipurpose' ), /*Search keyword*/
10 'categories' => array( 'medical', 'multipurpose' ), /*Categories*/
11 'template_url' => array(
12 'content' => 'full-url-path/content.json', /*Full URL Path to content.json*/
13 'options' => 'full-url-path/master/options.json', /*Full URL Path to options.json*/
14 'widgets' => 'full-url-path/widgets.json', /*Full URL Path to widgets.json*/
15 ),
16 'screenshot_url' => 'full-url-path/screenshot.png?ver=1.6', /*Full URL Path to demo screenshot image*/
17 'demo_url' => 'https://www.demo.cosmoswp.com/', /*
18 Full URL Path to Live Demo*/
19 /* Recommended plugin for this demo */
20 'plugins' => array(
21 array(
22 'name' => __( 'Gutentor', 'text-domain' ),
23 'slug' => 'gutentor',
24 ),
25 ),
26 ),
27 'demo2' => array(
28 'title' => __( 'Title 2', 'text-domain' ), /*Title*/
29 'is_pro' => false, /*Is Premium*/
30 'type' => 'gutentor', /*Optional eg gutentor, elementor or other page builders or type*/
31 'author' => __( 'Gutentor', 'text-domain' ), /*Author Name*/
32 'keywords' => array( 'about-block', 'about 3' ), /*Search keyword*/
33 'categories' => array( 'contact', 'multipurpose', 'woocommerce' ), /*Categories*/
34 'template_url' => array(
35 'content' => 'full-url-path/content.json', /*Full URL Path to content.json*/
36 'options' => 'full-url-path/master/options.json', /*Full URL Path to options.json*/
37 'widgets' => 'full-url-path/widgets.json', /*Full URL Path to widgets.json*/
38 ),
39 'screenshot_url' => 'full-url-path/screenshot.png?ver=1.6', /*Full URL Path to demo screenshot image*/
40 'demo_url' => 'https://www.demo.cosmoswp.com/', /*
41 Full URL Path to Live Demo*/
42 /* Recommended plugin for this demo */
43 'plugins' => array(
44 array(
45 'name' => __( 'Gutentor', 'text-domain' ),
46 'slug' => 'gutentor',
47 ),
48 array(
49 'name' => __( 'Contact Form 7', 'text-domain' ),
50 'slug' => 'contact-form-7',
51 'main_file' => 'wp-contact-form-7.php', /*the main plugin file of contact form 7 is different from plugin slug */
52 ),
53 ),
54 ),
55 'demo3' => array(
56 'title' => __( 'Title 1', 'text-domain' ), /*Title*/
57 'is_pro' => true, /*Is Premium : Support Premium Version*/
58 'pro_url' => 'https://www.cosmoswp.com/pricing/', /*Premium version/Pricing Url*/
59 'type' => 'gutentor', /*Optional eg gutentor, elementor or other page builders or type*/
60 'author' => __( 'Gutentor', 'text-domain' ), /*Author Name*/
61 'keywords' => array( 'woocommerce', 'shop' ), /*Search keyword*/
62 'categories' => array( 'woocommerce', 'multipurpose' ), /*Categories*/
63 'template_url' => array(/* Optional for premium theme, you can add your own logic by hook*/
64 'content' => 'full-url-path/content.json', /*Full URL Path to content.json*/
65 'options' => 'full-url-path/master/options.json', /*Full URL Path to options.json*/
66 'widgets' => 'full-url-path/widgets.json', /*Full URL Path to widgets.json*/
67 ),
68 'screenshot_url' => 'full-url-path/screenshot.png?ver=1.6', /*Full URL Path to demo screenshot image*/
69 'demo_url' => 'https://www.demo.cosmoswp.com/', /*
70 Full URL Path to Live Demo*/
71 /* Recommended plugin for this demo */
72 'plugins' => array(
73 array(
74 'name' => __( 'Gutentor', 'text-domain' ),
75 'slug' => 'gutentor',
76 ),
77 ),
78 ),
79 /*and so on ............................*/
80 );
81 return $demo_lists;
82 }
83 add_filter( 'advanced_import_demo_lists', 'prefix_demo_import_lists' );
84