Linux 软件免费装
Banner图

myThemes Wizard

开发者 mythemes
更新时间 2018年10月23日 12:37
捐献地址: 去捐款
PHP版本: 4.6 及以上
WordPress版本: 4.9
版权: GPLv2
版权网址: 版权信息

标签

developers wizard setup setup themes setup plugins

下载

详情介绍:

myThemes Wizard is a free plugin that allows easily build your own custom Setup for any WordPress Themes and Plugins. This plugin is dedicated to WordPress developers. Themes and Plugins require additional support to can be integrate with myThemes Wizard Plugin. Integration To integrate features of this plugin with you theme, in functions.php, is need define 2 actions: register action and setup action. Register Action eg: function my_wizard_register( $wizard ) { ... } add_action( 'mythemes_wizard_register', 'my_wizard_register' ); Setup Action eg: function my_wizard_setup( $wizard ) { ... } add_action( 'mythemes_wizard_setup', 'my_wizard_setup' ); In register action function you will include wizard Steps and Fields. You can define recommended plugins ( one of fields type ) and if user will check some of the plugin then on begin of the setup this plugin will be Installed and Activated automatically. In setup action function you will use settings values collected from steps and field ( register function ) to setup different theme options create pages and posts. Register Action Steps and Fields eg: DropBox register-action.php So you can see in the example above a register function with 4 Steps: Setup Action eg: DropBox setup-action.php After in your WordPress Theme or Plugin was be added support for register and setup actions you can install the plugin. The plugin not has settings or additional config actions. To run the setup is need access the URL admin_url( '/index.php?page=mythemes-wizard' ). How you will do that is your choice. For example I include these feature in Gourmand WordPress Theme gourmand/settings/setup/wizard.php. On Admin Dashboard I create an About Page with Recommended Actions Section where is a button. This button use some additional JavaScript to install and activate the plugin myThemes Wizard and after this automatically the user is redirected to setup page. Remember this is developer tools. Steps Step type can be: Example of Custom Navigations: $wizard -> add_step( 'donate-page', array( 'type' => 'other', 'title' => ( 'Setup is already finished !' ), 'navigation' => array( array( 'label' => ( 'Dashboard' ), 'url' => esc_url( admin_url( '/' ) ) ), // OR / AND array( 'action' => 'prev-step', ), array( 'action' => 'next-step', ), // OR / AND array( 'type' => 'primary', 'label' => __( 'Setup' ), 'action' => 'setup-step' ), // OR / AND array( 'type' => 'primary', 'label' => __( 'Customize Theme' ), 'url' => esc_url( admin_url( '/customize.php' ) ) ) ) )); Fields Fields type can be:

安装:

Minimum Requirements Automatic installation Automatic installation is the easiest option as WordPress handles the file transfers itself and you don't need to leave your web browser. To do an automatic install of myThemes Wizard, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New. In the search field type “myThemes Wizard” and click Search Plugins. Once you've found our plugin you can view details about it such as the point release, rating and description. Most importantly of course, you can install it by simply clicking "Install Now".

屏幕截图:

  • Welcome Step, Step 0 - this is first step with a welcome message, step type zero
  • Step 1 - this is default step with general website settings
  • Step 2 - this is default step with page settings
  • Step 3 - this is a setup step which allow choose from recommended plugins and after this start the Setup.

更新日志:

0.0.4 0.0.3 0.0.2