3.4. Lizenzverträge

Wie in jeder PHP-Datei besteht auch die Möglichkeit, mehrere Kommentarblöcke einzubinden. Daher empfiehlt es sich, dort auch gleich den Lizenztext anzugeben. Das hat den Vorteil, dass der Anwender sofort sehen kann, was er mit dem Plugin machen darf und was nicht.

WordPress selbst unterliegt der GNU General Public License (kurz GPL). Damit ist es den Endnutzern (Privatpersonen, Organisationen sowie Firmen) gestattet, die Software zu nutzen, zu studieren, zu verbreiten (also zu kopieren) und zu verändern.3

Das wiederum bedeutet, dass Sie eine Lizenz wählen sollten, die sich mit der GPL vereinbaren lässt.

Als Beispiel hier die GPLv2:

<?php
/*
Copyright (C) [Jahreszahl] [Name des Autors / der Autoren] (E-Mail: [E-Mail Adresse(n)])

This program 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 (at your option) any later version.

This program 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 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

*/
?>

Auf Github ansehen

  1. http://de.wikipedia.org/wiki/GNUGeneralPublicLicense Stand: 2. Januar 2014 Stand: 2. Januar 2014 ↩︎