Unlock the Secret to Effortless Website Magic: Build Your First WordPress Plugin Today!
- In
wp-content/plugins/
, create a folder calledquick-reading-time
. - Inside that folder, create a file named
quick-reading-time.php
.
Your file structure should look like this:
wp-content/
└── plugins/
└── quick-reading-time/
└── quick-reading-time.php
Add the following code to quick-reading-time.php
:
<?php
/*
Plugin Name: Quick Reading Time
Description: Displays an estimated reading-time badge beneath post titles.
Version: 1.0
Author: Your Name
License: GPL-2.0+
Text Domain: quick-reading-time
*/
This header is a PHP comment, but WordPress scans it to list your plugin in Plugins → Installed Plugins. Activate it—nothing happens yet (that’s good; nothing is broken).