forked from DevinVinson/WordPress-Plugin-Boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
Installation
Moisés Barrachina Planelles edited this page Oct 4, 2023
·
3 revisions
Download the code, copy the folder 'backend-frontend-template' on your WordPress instalation/wp-content/plugins and follow
- Change the files of wp-content/plugins/backend-frontend-template with the id of your plugin (like 'a-plugin-name')
- Delete the files or change their extension:
- wp-content/plugins/backend-frontend-template/backend-frontend-template.php
- wp-content/plugins/backend-frontend-template/includes/class-backend-frontend-template.php
- Change the extension of the files to PHP:
- wp-content/plugins/backend-frontend-template/your-plugin.txt
- wp-content/plugins/backend-frontend-template/includes/class-your-plugin.txt
- Uncomment: "//$this->admin_pages_main_name = $this->plugin_title; on wp-content/plugins/backend-frontend-template/admin/class-your-plugin-admin.php
- Find and replace all the file names with 'your-plugin' like 'class-your-plugin.php' to your plugin id, example: 'class-a-plugin-name.php'.
- On wp-content/plugins/backend-frontend-template/languages replace the file names with 'bft-internationalization' to 'your-plugin', example: 'a-plugin-name-es_ES.mo'
- Go to search and replace of your editor, active 'match case' and replace this strings:
- 'bft-internationalization' to 'your-plugin'
- '$plugin_slug = "bft_pro"' to $plugin_slug = "your_plugin"
- 'bft_shortcode' to your_plugin_shortcode
- 'bft-shortcode' to your-plugin-shortcode
- Go to search and replace of your editor, active 'match case' and replace the words with the names and ids of your plugin:
- Description of Your Plugin
- https://yourfuturewebsite/your-plugin/
- https://yourfuturewebsite
- Plugin Author
- pluginauthor@email
- Your Plugin
- your_plugin
- Your_Plugin
- your-plugin
- YOUR_PLUGIN
- Replace the icon for you own on wp-content/plugins/backend-frontend-template/admin/img/icon-16px.png