Here is a demo plugin to help you start. You can download it from here and install it.
Create the plugin
- Create a folder with a unique name inside the plugins folder, for example My_Plugin.
- Create an index.php file in the root of that folder.
- Add the meta data to the top of index.php, like this:
<?php
//Prevent direct access
defined('PLUGINPATH') or exit('No direct script access allowed');
/*
Plugin Name: Your Plugin Name
Plugin URL: https://codecanyon.net/item/your_item
Description: Your plugin description
Version: 1.0
Requires at least: 4.2
Author: Author name
Author URL: https://codecanyon.net/user/author_url
*/
The meta data is needed only in the index.php file.
Install the plugin
- RISE now finds your plugin. Go to Settings > Plugins. There you can install and activate it.
- You can also make a .zip file of your plugin folder and install it from Settings > Plugins.
- The .zip file must contain only one root folder. That folder must contain the index.php file and the rest of the plugin files.