Latest posts

  • Advance Plugin: AJAX & Rewrites

    Understanding AJAX in WordPress AJAX, or Asynchronous JavaScript and XML, is a technology that allows web pages to be updated asynchronously by exchanging data with a web server behind the scenes. This means that parts of a web page can be updated without requiring a full-page refresh, creating a smoother and more interactive user experience.…

    Read more

  • Understanding WordPress Transient API and HTTP API

    The Transient API The WordPress Transient API is designed for storing temporary data in the database. Unlike regular options that are stored permanently until deleted, transient data automatically expires after a specified time. Key Functions of Transient API: Use Cases: Example: The HTTP API The WordPress HTTP API provides a simple way to send HTTP…

    Read more

  • WP-CLI & REST: Deep Dive

    WP-CLI: More Useful Commands WP-CLI continues to prove itself as an indispensable tool, streamlining complex tasks into simple command-line operations. We’ve covered some essential WP-CLI commands before, but there are a few more gems that can significantly enhance your workflow. 1. Database Management Managing your WordPress database becomes a breeze with WP-CLI. Here are a…

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

  • Day 12: MultiSite & PHP Unit Testing

    Multisite / Network WordPress allows you to set up a network of websites using the same core files but with different login credentials and separate dashboards. Each site is independent of each other but can be managed from one place by the Network Admin (aka Super Admin). Key points: To enable Multisite, you need to…

    Read more

  • Day 11: WordPress – Customization & FSE

    WordPress Customization This built-in tool allows you to make changes to your site’s appearance and see a live preview of your updates. Key Features of the WordPress Customizer: What are Widgets? WordPress widgets add content and functionality to the widget area. The widget area is a pre-defined area by the theme, typically located in the…

    Read more

  • Day 10: Introduction To WordPress & PHP DocString Comments

    What is WordPress? WordPress is a free and open-source web content management software (CMS) that can be downloaded and installed on one’s own server. With WordPress, you can create various types of websites, from a simple personal blog or portfolio site to a full-fledged eCommerce website or a news magazine serving billions of web pages each…

    Read more