Skip to content

Installation

Moisés Barrachina Planelles edited this page Oct 4, 2023 · 3 revisions

Install the code

Download the code, copy the folder 'backend-frontend-template' on your WordPress instalation/wp-content/plugins and follow

Make the plugin your own

  1. Change the files of wp-content/plugins/backend-frontend-template with the id of your plugin (like 'a-plugin-name')
  2. Delete the files or change their extension:
    1. wp-content/plugins/backend-frontend-template/backend-frontend-template.php
    2. wp-content/plugins/backend-frontend-template/includes/class-backend-frontend-template.php
  3. Change the extension of the files to PHP:
    1. wp-content/plugins/backend-frontend-template/your-plugin.txt
    2. wp-content/plugins/backend-frontend-template/includes/class-your-plugin.txt
  4. Uncomment: "//$this->admin_pages_main_name = $this->plugin_title; on wp-content/plugins/backend-frontend-template/admin/class-your-plugin-admin.php
  5. 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'.
  6. 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'
  7. Go to search and replace of your editor, active 'match case' and replace this strings:
    1. 'bft-internationalization' to 'your-plugin'
    2. '$plugin_slug = "bft_pro"' to $plugin_slug = "your_plugin"
    3. 'bft_shortcode' to your_plugin_shortcode
    4. 'bft-shortcode' to your-plugin-shortcode
  8. Go to search and replace of your editor, active 'match case' and replace the words with the names and ids of your plugin:
    1. Description of Your Plugin
    2. https://yourfuturewebsite/your-plugin/
    3. https://yourfuturewebsite
    4. Plugin Author
    5. pluginauthor@email
    6. Your Plugin
    7. your_plugin
    8. Your_Plugin
    9. your-plugin
    10. YOUR_PLUGIN
  9. Replace the icon for you own on wp-content/plugins/backend-frontend-template/admin/img/icon-16px.png
Clone this wiki locally