This is a simple starter plugin that includes a base class with a very simple set of utilities that most plugins should have.
You will need to change the name of the plugin in a few simple steps:
- Rename the base plugin folder name and primary PHP file named 'baseplugin.php' to your plugin's name. Make sure the folder name matches the name of the PHP file (without .php on the end).
- Rename the Javascript and CSS files inside the /scripts/ and /styles/ directory to 'myplugin.js' and 'myplugin.css'.
- Search for
'baseplugin'
and replace with your desired plugin name in all lowercase with dashes between words (if desired). - Search for
'Base Plugin'
and replace with your plugin's proper name. - Search for
'BASEPLUGIN'
and replace with your plugin's name in all caps. Spaces should be convered to underscores. - Search for
'Base_Plugin'
and replace with your plugin's proper name with underscores instead of spaces between words.
This base plugin does not include any utilities for creating and saving plugin settings at this time, but we recommend using the Settings API to implement your plugin settings.