Hello people! Just another CODE FOR FUN!!! 👨💻🎉 I've been diving deep into the exhilarating world of Plugin development, with a laser focus on mastering the WordPress Settings API and the art of Plugin translation. Armed with enthusiasm and a hefty dose of curiosity, I've embarked on a journey of experimentation and discovery, crafting intuitive options pages that are as user-friendly as they are delightful to navigate. Picture this: users gleefully tinkering with settings, their faces lighting up with joy as they tailor their WordPress experience to perfection! But wait, there's more! I've also sprinkled in some linguistic magic, ensuring that my Plugin speaks the language of every user, no matter where they are in the world. From "Bonjour" to "Hola" and beyond, my Plugin is ready to mingle with users from all corners of the globe. So buckle up and join me on this wild ride through the colorful realm of WordPress Plugin development – where every line of code is infused with a dash of fun and a sprinkle of magic! 🚀✨
This is a simple plugin that adds a custom alert message to the top of every post. The message can be customized from the admin panel. The plugin also includes a settings page where the user can customize the message and choose the color of the alert.
- Add a custom alert message to the top of every post.
- Customize the message from the admin panel.
- Choose the color of the alert.
- Use the WordPress Settings API to create the settings page.
- Use Oriented Object Programming (OOP) to create the plugin.
- Download the plugin as a zip file.
- Go to your WordPress admin panel and click on Plugins > Add New.
- Click on the "Upload Plugin" button and select the zip file you downloaded.
- Click on the "Install Now" button.
- Once the plugin is installed, click on the "Activate" button.
- Go to your WordPress admin panel and click on Settings > Alert Message.
- Customize the message and choose the color of the alert.
- Click on the "Save Changes" button.
This is how the settings page looks on the admin panel.
This is how the alert message looks on the post.
The alert message has four variations: info, warning, error, and success. You can use these variations to convey different types of messages to your users.
🧪 - Test 🚿 - Clean Up - When comments and other unnecessary code is removed. 🖥️ - Coding - 📋 - Notes and Documentation 🐞 - Bug fix 💎 - Beautify ☕ - Coffee Break (Also: Lunch, Snack, Save etc.) 🚀 - Push to production 🔖 - Versioning 📁 - New folder or file 🔥 - Remove folder or file