PluginProbe ʕ •ᴥ•ʔ
Advanced Import / 1.4.5
Advanced Import v1.4.5
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 1 year ago assets 1 year ago includes 1 year ago languages 1 year ago LICENSE.txt 1 year ago advanced-import.php 1 year ago example.php 1 year ago index.php 1 year ago readme.txt 1 year ago uninstall.php 1 year ago
example.php
85 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 'source' => 'https://downloads.wordpress.org/plugin/gutentor.3.3.6.zip', /* optional: any source url with plugin zip will work, dont do for theme for WordPress dot org */
48 ),
49 array(
50 'name' => __( 'Contact Form 7', 'text-domain' ),
51 'slug' => 'contact-form-7',
52 'main_file' => 'wp-contact-form-7.php', /*the main plugin file of contact form 7 is different from plugin slug */
53 ),
54 ),
55 ),
56 'demo3' => array(
57 'title' => __( 'Title 1', 'text-domain' ), /*Title*/
58 'is_pro' => true, /*Is Premium : Support Premium Version*/
59 'pro_url' => 'https://www.cosmoswp.com/pricing/', /*Premium version/Pricing Url*/
60 'type' => 'gutentor', /*Optional eg gutentor, elementor or other page builders or type*/
61 'author' => __( 'Gutentor', 'text-domain' ), /*Author Name*/
62 'keywords' => array( 'woocommerce', 'shop' ), /*Search keyword*/
63 'categories' => array( 'woocommerce', 'multipurpose' ), /*Categories*/
64 'template_url' => array(/* Optional for premium theme, you can add your own logic by hook*/
65 'content' => 'full-url-path/content.json', /*Full URL Path to content.json*/
66 'options' => 'full-url-path/master/options.json', /*Full URL Path to options.json*/
67 'widgets' => 'full-url-path/widgets.json', /*Full URL Path to widgets.json*/
68 ),
69 'screenshot_url' => 'full-url-path/screenshot.png?ver=1.6', /*Full URL Path to demo screenshot image*/
70 'demo_url' => 'https://www.demo.cosmoswp.com/', /*
71 Full URL Path to Live Demo*/
72 /* Recommended plugin for this demo */
73 'plugins' => array(
74 array(
75 'name' => __( 'Gutentor', 'text-domain' ),
76 'slug' => 'gutentor',
77 ),
78 ),
79 ),
80 /*and so on ............................*/
81 );
82 return $demo_lists;
83 }
84 add_filter( 'advanced_import_demo_lists', 'prefix_demo_import_lists' );
85