AI助手支持GPT4.0
Support
支持 p>
Tested with WordPress 5.1.1
经过WordPress 5.1.1测试 p>
Instant Demo Importer is a Free WordPress plugin to import the demo contents, widgets, theme settings and customizer settings with one click in your website!
即时演示导入器 strong>是一个免费的WordPress插件 strong>,只需在您的网站上单击一下即可导入演示内容,小部件,主题设置和定制程序设置! p>You just need to create a new instance for the plugin class somewhere in your theme and define the path for the demo content, widgets, theme option settings and customizer settings and the path for the demo folder location.您只需要在主题中某个位置为插件类创建一个新实例,并定义演示内容,小部件,主题选项设置和定制程序设置的路径以及演示文件夹位置的路径。 p>
You just need to create a new instance for the plugin class somewhere in your theme and define the path for the demo content, widgets, theme option settings and customizer settings and the path for the demo folder location.
您只需要在主题中某个位置为插件类创建一个新实例,并定义演示内容,小部件,主题选项设置和定制程序设置的路径以及演示文件夹位置的路径。 p>
instant-demo-imporder
/wp-content/plugins/
instant-demo-imporder code>文件夹上传到 / wp-content / plugins / code>目录 li>Activate the plugin through the ‘Plugins’ menu in WordPress通过WordPress中的“插件”菜单激活插件 li>Create an object instance for the APTU_Class class within your theme file.在主题文件中为 APTU_Class code>类创建一个对象实例。 li>Place <?php do_action('APTU_Class');放置&lt;?php do_action('APTU_Class'); ?> in your templates this will provide you with the default demo for the ScrollMe theme by AccessPress to install.?&gt; code>模板中的内容,这将为您提供由AccessPress安装的ScrollMe主题的默认演示。 li>You may replace these default demo by adding your own demo content files to the theme folder and setting the demo file path location to the APTU_Class object.您可以通过将自己的演示内容文件添加到主题文件夹并将演示文件路径位置设置为 APTU_Class code>对象来替换这些默认演示。 li>
/ wp-content / plugins / code>目录 li>Activate the plugin through the ‘Plugins’ menu in WordPress通过WordPress中的“插件”菜单激活插件 li>Create an object instance for the APTU_Class class within your theme file.在主题文件中为 APTU_Class code>类创建一个对象实例。 li>Place <?php do_action('APTU_Class');放置&lt;?php do_action('APTU_Class'); ?> in your templates this will provide you with the default demo for the ScrollMe theme by AccessPress to install.?&gt; code>模板中的内容,这将为您提供由AccessPress安装的ScrollMe主题的默认演示。 li>You may replace these default demo by adding your own demo content files to the theme folder and setting the demo file path location to the APTU_Class object.您可以通过将自己的演示内容文件添加到主题文件夹并将演示文件路径位置设置为 APTU_Class code>对象来替换这些默认演示。 li>
APTU_Class
APTU_Class code>类创建一个对象实例。 li>Place <?php do_action('APTU_Class');放置&lt;?php do_action('APTU_Class'); ?> in your templates this will provide you with the default demo for the ScrollMe theme by AccessPress to install.?&gt; code>模板中的内容,这将为您提供由AccessPress安装的ScrollMe主题的默认演示。 li>You may replace these default demo by adding your own demo content files to the theme folder and setting the demo file path location to the APTU_Class object.您可以通过将自己的演示内容文件添加到主题文件夹并将演示文件路径位置设置为 APTU_Class code>对象来替换这些默认演示。 li>
<?php do_action('APTU_Class');放置&lt;?php do_action('APTU_Class'); ?> in your templates this will provide you with the default demo for the ScrollMe theme by AccessPress to install.?&gt; code>模板中的内容,这将为您提供由AccessPress安装的ScrollMe主题的默认演示。 li>You may replace these default demo by adding your own demo content files to the theme folder and setting the demo file path location to the APTU_Class object.您可以通过将自己的演示内容文件添加到主题文件夹并将演示文件路径位置设置为 APTU_Class code>对象来替换这些默认演示。 li>
&lt;?php do_action('APTU_Class'); ?>
?>
?&gt; code>模板中的内容,这将为您提供由AccessPress安装的ScrollMe主题的默认演示。 li>
APTU_Class code>对象来替换这些默认演示。 li>
ol>
for e.g.
例如
<?php
if(class_exists(‘APTU_Class’)) :
if(class_exists('APTU_Class')): p>
$demos = array( $ demos = array( 'test-demo' => array( 'test-demo'=>数组( 'title' => __('Test Demo', 'parallaxsome-pro'), 'title'=> __('Test Demo','parallaxsome-pro'), 'name' => 'test-demo', '名称'=>'测试演示', 'screenshot' => get_template_directory_uri().'/path/to/test-demo/screen.png', '截图'=> get_template_directory_uri()。'/ path / to / test-demo / screen.png', 'home_page' => 'front-page', 'home_page'=>'首页', 'menus' => array( '菜单'=>数组( 'Main Menu' => 'primary', '主菜单'=>'主要', 'Footer Menu' => 'footer-menu', 'Footer Menu'=>'footer-menu', ) ) ), ), ); ); $demoimporter = new APTU_Class( $demos, $demo_dir='path\to\demo\directory' ); $ demoimporter = new APTU_Class($ demos,$ demo_dir ='path \ to \ demo \ directory'); endif;万一;?>?&gt; code> pre>Available Languages可用语言 h4>English英语 li> ul>Features功能 h4>Import all the contents of theme’s demo. 导入主题演示的所有内容。 strong> li>Import all widgets data. 导入所有小部件数据。 strong> li>Import all menu, customizer settings and other themes settings. 导入所有菜单,定制器设置和其他主题设置。 strong> li>Import posts, pages, images, categories, custom post. 导入帖子,页面,图像,类别,自定义帖子。 strong> li> ul>Some Useful Links一些有用的链接 h4>Support Forum Link: http://accesspressthemes.com/support/ 支持论坛链接 strong>:http://accesspressthemes.com/support/ li>Website Link: http://accesspressthemes.com/ 网站链接 strong>:http://accesspressthemes.com/ li>Youtube channel link: https://www.youtube.com/watch?v=TjZNcVG3fDE Youtube频道链接 strong>:https://www.youtube.com/watch?v=TjZNcVG3fDE li>Facebook link: https://www.facebook.com/AccessPressThemes Facebook链接 strong>:https://www.facebook.com/AccessPressThemes li> ul>
$ demos = array( 'test-demo' => array( 'test-demo'=>数组( 'title' => __('Test Demo', 'parallaxsome-pro'), 'title'=> __('Test Demo','parallaxsome-pro'), 'name' => 'test-demo', '名称'=>'测试演示', 'screenshot' => get_template_directory_uri().'/path/to/test-demo/screen.png', '截图'=> get_template_directory_uri()。'/ path / to / test-demo / screen.png', 'home_page' => 'front-page', 'home_page'=>'首页', 'menus' => array( '菜单'=>数组( 'Main Menu' => 'primary', '主菜单'=>'主要', 'Footer Menu' => 'footer-menu', 'Footer Menu'=>'footer-menu', ) ) ), ), ); ); $demoimporter = new APTU_Class( $demos, $demo_dir='path\to\demo\directory' ); $ demoimporter = new APTU_Class($ demos,$ demo_dir ='path \ to \ demo \ directory'); endif;万一;?>?&gt;
'test-demo' => array(
'test-demo'=>数组(
'title' => __('Test Demo', 'parallaxsome-pro'),
'title'=> __('Test Demo','parallaxsome-pro'),
'name' => 'test-demo',
'名称'=>'测试演示',
'screenshot' => get_template_directory_uri().'/path/to/test-demo/screen.png',
'截图'=> get_template_directory_uri()。'/ path / to / test-demo / screen.png',
'home_page' => 'front-page',
'home_page'=>'首页',
'menus' => array(
'菜单'=>数组(
'Main Menu' => 'primary',
'主菜单'=>'主要',
'Footer Menu' => 'footer-menu',
'Footer Menu'=>'footer-menu',
)
)
),
),
);
);
$demoimporter = new APTU_Class( $demos, $demo_dir='path\to\demo\directory' );
$ demoimporter = new APTU_Class($ demos,$ demo_dir ='path \ to \ demo \ directory');
endif;
万一;
?&gt;
code> pre>
ul>
原文出处:http://www.sanshu.cn/a/2534.html
群主管理都是支付大佬