Skip to content

emka.web.id

menulis pengetahuan – merekam peradaban

Menu
  • Home
  • Tutorial
  • Search
Menu

Membuat Plugin WordPress

Pada tutorial kali ini, secara singkat akan diuraikan tentang ciri utama sebuah plugin WordPress, yaitu header. Setiap file PHP yang merupakan plugin WordPress akan dicirikan dengan keberadaan header.

Semua source code dapat anda unduh disini, namun anda disarankan untuk tetap membaca penjabarannya disini. Silakan baca tutorial sebelumnya untuk mengenal apa itu plugin, konsep dan saran pembuatan struktur folder plugin WordPress.

Contoh header sebuah plugin misalnya:

[sourcecode language=”php”]
<br /*
Plugin Name: Akismet
Plugin URI: http://akismet.com/?return=true
Description: Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from comment and trackback spam</strong>. It keeps your site protected from spam even while you sleep. To get started: 1) Click the "Activate" link to the left of this description, 2) <a href="http://akismet.com/get/?return=true">Sign up for an Akismet API key</a>, and 3) Go to your <a href="admin.php?page=akismet-key-config">Akismet configuration</a> page, and save your API key.
Version: 2.5.5
Author: Automattic
Author URI: http://automattic.com/wordpress-plugins/
License: GPLv2 or later
*/
?>
[/sourcecode]

Sourcecode diatas adalah header dari plugin Akismet, anda bisa mengecek dan membuka contohnya pada /wp-content/plugins/akismet/akismet.php.

Sebagai latihan, silakan buat perencanaan sebuah plugin WordPress. Contohnya plugin Sistem Informasi Sekolah:

[sourcecode language=”php”]
/* Plugin Name: Sistem Informasi Akademik Sekolah (siaSekolah) Plugin URI: http://sisteminformasi.web.id/siasekolah/ Description: Sistem informasi akademik sekolah (SMP-SMA Sederajat), modular, fleksibel, lengkap dan aplikatif. Version: 1.0 Author: Luthfi Maslichul Kurniawan Author URI: http://luthfi.emka.web.id/ /* ———————————————-*/
[/sourcecode]

Simpan sourcecode tersebut pada folder /wp-content/plugins/sis/siasekolah.php.

Install Plugin SIS

Silakan login ke WordPress anda, dan tuju ke halaman Plugins. Seharusnya plugin Sistem Informasi Akademik Sekolah (siaSekolah) sudah muncul.

Screenshoot:

Nah, saya harap contoh ini sudah bisa memberi gambaran bagaimana awal membuat plugin WordPress. Pada tutorial selanjutnya, kita akan mencoba membuat plugin WordPress sederhana.

Pages: 1 2 3 4 5

Leave a Reply

You must be logged in to post a comment.

Terbaru

  • Inilah Syarat dan Prosedur Ikut Seleksi Siswa Unggul ITB Jalur Tes Tulis 2026/2027
  • Inilah Kronologi & Latar Belakang Kasus Erin Taulany vs ART Hera: Masalah Facebook Pro?
  • Inilah Alasan Kenapa Ending Film Children of Heaven diubah di Indonesia
  • Ini Alasan Hanny Kristianto Cabut Sertifikat Mualaf Richard Lee
  • Inilah Syarat Dokumen SSU ITB 2024-2026 yang Wajib Kalian Siapkan Supaya Nggak Gagal Seleksi Administrasi
  • Inilah Episyrphus Balteatus, Lalat Unik Penyamar yang Sangat Bermanfaat bagi Taman Kalian
  • Inilah Cara Lolos Seleksi Siswa Unggul ITB Lewat Jalur Tes Tulis Biar Jadi Mahasiswa Ganesha
  • Inilah Penemuan Fosil Hadrosaurus yang Ungkap Bahwa Penyakit Langka Manusia Sudah Ada Sejak Zaman Prasejarah
  • Inilah Penemuan Terbaru yang Mengungkap Bahwa Sunburn Ternyata Disebabkan Oleh Kerusakan RNA
  • Inilah Alasan Kenapa Manusia Lebih Sering Hamil Satu Bayi daripada Kembar Menurut Penelitian Terbaru
  • Inilah Syarat dan Cara Pendaftaran IMEI Internasional Mulai Mei 2026
  • Bocoran Spek Samsung Galaxy S27 Ultra Nih, Kamera 3X Hilang + Teknologi AI
  • Inilah Perbedaan Motorola G47 dan Motorola G45, Cuma Kamera 108 Megapiksel Doang?
  • Update Baru Google Gemini: Bisa Bikin File Word, PDF, Excel secara Otomatis
  • Rekomendasi Motor Listrik 2026 Anti Mogok!
  • Ini Loh Honda Vision 110, Motor Baru Seharga Beat & Rangka eSAF Khusus Pasar Eropa
  • Inilah Mobil-Mobil Paling Cocok Transisi ke Bioetanol E20 dan Biodiesel B50!
  • Inilah Ternyata Batas Minimal Daya Cas Mobil Listrik di Rumah
  • DJP Geser Batas Akhir Lapor Pajak Sampai 31 Mei 2026
  • PKB Tanggapi Dingin Usul Yusril Ihza Mahendra Soal Parliamentary Treshold 13 Kursi
  • LPTNU Kritik Keras Rencana Penutupan Prodi: Kenapa Tidak Komprehensi & Berbasis Problematika Nyata?
  • Gus Rozin PWNU Jawa Tengah Setuju Cak Imin, Konflik PBNU bikin Warga Kesal dan Tidak Produktif
  • Pengamat: Prabowo Harus Benahi KAI, Aktifkan juga Jalur Kereta Lama & Baru
  • Sekjend PBNU: Jadwal Muktamar Usulan PWNU Sejalan Hasil Rapat Pleno & Rais Aam
  • PKB Desak Hukuman Maksimal Kasus Little Aresha & Evaluasi Total Sistem Penitipan Anak secara Nasional
  • PKB Usul Modernisasi Sistem Kereta dan CCTV di Kabin Masinis, Setuju?
  • Menteri PPA Arifah Fauzi Minta Maaf Soal Polemik Pindah Gerbong Wanita di KRL
  • Cara Kirim Robux Mudah di Roblox Beli Skin Shirt Preview
  • Kronologi kasus dugaan penyebaran konten asusila oleh anak anggota DPRD Kutai Barat?
  • Inilah Alasan Kenapa Gelembung Air di Luar Angkasa Bisa Jadi Eksperimen Fisika yang Keren Banget
  • How to build a high-performance private photo cloud with Immich and TrueNAS SCALE
  • How to Build an Endgame Local AI Agent Setup Using an 8-Node NVIDIA Cluster with 1TB Memory
  • How to Master Windows Event Logs to Level Up Your Cybersecurity Investigations and SOC Career
  • How to Build Ultra-Resilient Databases with Amazon Aurora Global Database and RDS Proxy for Maximum Uptime and Performance
  • How to Build Real-Time Personalization Systems Using AWS Agentic AI to Make Every User Feel Special
  • How to Master Mistral Medium 3.5: A Comprehensive Guide to the 128B Dense Open-Source Giant
  • How to Create Professional YouTube Content Using HeyGen AI Without Showing Your Face
  • How to Boost Your Local AI Speed with Gemma 4 Multi-Token Prediction
  • How to 3x your AI speed with Google’s Gemma 4 MTP Drafters: A step-by-step guide to lightning-fast inference
  • How to Master Google Pomelli: The Ultimate AI Tool for Creating Professional Marketing Content in Minutes
  • Apa itu Spear-Phishing via npm? Ini Pengertian dan Cara Kerjanya yang Makin Licin
  • Apa Itu Predator Spyware? Ini Pengertian dan Kontroversi Penghapusan Sanksinya
  • Mengenal Apa itu TONESHELL: Backdoor Berbahaya dari Kelompok Mustang Panda
  • Siapa itu Kelompok Hacker Silver Fox?
  • Apa itu CVE-2025-52691 SmarterMail? Celah Keamanan Paling Berbahaya Tahun 2025

©2026 emka.web.id | Design: Newspaperly WordPress Theme