- 以下是一个演示插件,可帮助您更清楚地了解。要安装该插件,请从这里下载。
The following is a demonstration plugin that can help you understand more clearly. To install this plugin, please download it from the attachment. - 创建一个具有唯一文件夹名称的插件。
Create a plugin with a unique folder name. - 在插件文件夹的根目录创建一个 index.php 文件。
Create an index.php file in the root directory of the plugin folder. - 将元数据添加到 index.php 文件,如下所示:
Add metadata to the index.php file as follows:
<?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: 2.8
Author: Author name
Author URL: https://codecanyon.net/user/author_url
*/