包括软件许可证

大多数WordPress插件都是在GPL下发布的,GPLWordPress本身使用的许可证相同。但是,还有其他兼容选项可用。最好清楚地指出您的插件使用的许可证。

在标题要求部分,我们简要提到了如何在插件标题注释中指示插件的许可证。另一种常见且鼓励的做法是在主插件文件(与具有插件标题注释的相同文件)的顶部附近放置许可证块注释。

此许可证块注释通常如下所示:

/*
{Plugin Name} is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
any later version.

{Plugin Name} is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with {Plugin Name}. If not, see {URI to Plugin License}.
*/