✴︎ Welcome
to my
Blog.
—20.26
Some interesting stuff…
-
Day 19: Understanding Plugins – Metadata API, Shortcode API, Administrative Menu, and Options API
Metadata API The Metadata API is the backbone for managing custom metadata in WordPress. Metadata is simply data about data. For example, when you upload an image to a post, WordPress stores metadata like the image’s dimensions, file size, and alt text. The Metadata API provides functions to add, update, delete, and retrieve metadata for…
-
Assignment – Analysis
Readme CheckList: SKELETON CheckList: phpcs.xml rt-config mu-plugins plugins themes webroot-files Development.md CheckList Branch Naming Convention Pull Request and Issue Notes WordPress Development Basics Prerequisite: Update phpcs.xml and add domain for website in it. Recommended Project Structure Plugin: In inc/traits/trait-singleton.php, define a singleton trait to enable the use of a single instance for any class by calling…
-
Day 17: WordPress: WPQ, Plugin, Settings, MetaData
Using the Plugin API The Plugin API allows you to interact with WordPress core functionality. Let’s add an admin notice using the Plugin API: Using the Settings API The Settings API allows you to add settings fields and sections to the WordPress admin. Here’s how you can add a basic settings page: This code creates…
-
Day 16: CS & WordPress Plugin Development
Peer Coding Review Why Peer Review is Absolutely Necessary in Enterprises? 1. Enhances Code Quality 2. Knowledge Sharing 3. Improves Security 4. Facilitates Collaboration 5. Reduces Technical Debt 6. Boosts Developer Confidence 7. Increases Efficiency Security Plugin Development Hooks Custom Post Types Nonces Filters & Sanitization Actions Sanitization / Escaping – These are the filters that…
-
Day 15: TDD & WordPress CS
Introduction to TDD and Its Application in WordPress Test-Driven Development (TDD) is a software development approach where tests are written before the actual code. The process follows a cycle of writing a test, ensuring it fails, writing the minimal code to pass the test, and then refactoring the code while keeping all tests passing. TDD…