Berikut beberapa aturan dasar plugin wordpress
- Plugin disimpan dalam folder wp-content/plugins.
- Plugin yang paling sederhana hanya 1 file php saja.
- Plugin dapat disimpan dalam folder tersendiri, dan sangat disarankan, karena akan lebih flexible jika dikembangkan dan memiliki banyak file.
- Nama plugin harus sama dengan nama file plugin.
- Nama folder yang sama dengan file plugin.
- Lakukan riset terlebih dahulu agar nama plugin tidak konflik dengan plugin yang sudah ada.
- Setiap plugin harus memiliki file header sebagai metadata informasi dari plugin, informasi minimum adalah Plugin Name.
Berikut contoh isi file header
<?php /* Plugin Name: Skillplus Plugin Plugin URI: https://skillplus.web.id/ Description: Belajar membuat wordpress plugin Version: 1.0.0 Author: SkillPlus Author URI: https://skillplus.web.id/ License: GPLv2 or later Text Domain: SkillPlus Plugin */ /* 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. Copyright 2005-2015 skillPlus.web.id */ ?>
Buka wordpress dashboard, plih menu plugin. Plugin diatas sudah terdeteksi oleh wordpress. File header diatas akan ditampilkan pada plugin browser seperti dibawah.
Plugin perlu diaktifkan dengan menekan link Activate. Setelah diaktifasi, plugin dapat digunakan dalam site wordpress.
Berikutnya adalah membuat program untuk plugin.

Must Use Plugins
Must use plugin adalah plugin yang disimpan dalam directory wp-content/mu-plugins.
Keuntungan dari must-use plugins adalah otomatis aktif, user tidak bisa mengubah status aktif. Namun must use plugin hanya terdiri 1 file php saja, jadi tidak cocok untuk plugin yang kompleks.
Selain itu must use plugin tidak memiliki mekanisme untuk melakukan update.
Must use plugins tidak akan dibahas dalam tutorial ini. Tutorial hanya membahas plugin umum yang bisa diaktifkan secara manual dan bisa diupdate.
Resource Penting
Berikut link source yang dapat membantu Plugin development
WP Codex : https://codex.wordpress.org/
WP Code Reference : https://developer.wordpress.org/reference/
Plugin Handbook : https://developer.wordpress.org/plugins/