Latest posts

  • Tax Query & Optimizations, and jQuery Integration

    Tax Query & Optimizations A tax query is a powerful tool in WordPress that allows you to filter posts based on their taxonomy terms. Whether you’re working with categories, tags, or custom taxonomies, understanding how to optimize these queries is essential for maintaining performance, especially on sites with large amounts of data. 1. What is…

    Read more

  • Day 21: WordPress Documentation Schema

    What is WordPress Documentation Schema? The WordPress Documentation Schema is a set of guidelines for writing inline documentation using PHPDoc. It ensures that your code is easy to read and understand by following a consistent format across your project. This schema helps developers and users understand what your code does, how it should be used,…

    Read more

  • Day 20: Theme Modification, Filesystem, File Header, and XML-RPC APIs

    1. Theme Modification API The Theme Modification API is essential for developers who want to provide users with customizable theme options. This API allows you to save, retrieve, and manage theme settings without directly editing the theme files. These functions provide a powerful way to store user preferences such as custom colors, logos, or layout…

    Read more

  • 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…

    Read more

  • 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…

    Read more

  • 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…

    Read more

  • 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…

    Read more

  • 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…

    Read more

  • Day 14: Git Remastered & WooCommerce

    What is Git Rebase Interactive? Git rebase interactive (git rebase -i) lets you rewrite commit history in a flexible way. With it, you can: How to Use Git Rebase Interactive Example Workflow Here’s a simple workflow example to squash the last three commits into one: Some other similiar commands: 1. git cherry-pick git cherry-pick allows…

    Read more

  • Day 13: Testing & Setting Up

    Setup WP-Unit Tests: Write Sample Unit Tests: Create Test File: Create a directory named tests in your plugin/theme root. Create a file named test-sample.php inside the tests directory. Create a Test Class: Example class in Run Tests: Execute tests using PHPUnit: vendor/bin/phpunit or just phpunit if you have global composer. Theme Testing: Plugin Testing: Best…

    Read more