Personal Blog

Hero Illustration

Posts

  • Day 34: an overview of Transients API, HTTP API and Rewrite API

    Transient API is similar to options API. The only added benefit is adding the ‘expiration time’ to easily handle the cache. It uses wp_options table to temporarily store the cached information. “Transients are inherently sped up by caching plugins, where normal Options are not”. Transient expiration times are the maximum time. There is no minimum…

    Go to post

  • Day 33: WP APIs and their usages

    ,

    WP Dashboard Widget API It was introduced in version 2.7. It makes it easy to add widgets to the administrative dashboard. The default available dashboard widgets are At a Glance, Activity, Quick Draft, WordPress Events and News, and Welcome. To add a new widget we need to use the wp_add_dashboard_widget() function. Action hooks To run the function you will…

    Go to post

  • Day 32: WordPress Transient API and HTTP API

    ,

    In web development, APIs (Application Programming Interfaces) act as intermediaries, facilitating communication between different applications or components. This post delves into two distinct API concepts: Transients and HTTP, exploring their technical functionalities. 1. Transient API: 2. HTTP API: Comparison: Feature Transient API HTTP API Purpose Temporary data storage within an application Communication between web servers…

    Go to post

  • Day 31: Exploring WP CLI and REST Schema

    ,

    Introduction to WP-CLI: WP-CLI, or WordPress Command-Line Interface, is a powerful tool that allows developers and administrators to interact with their WordPress websites through the command line. This enables efficient management, automation of tasks, and streamlined development processes. Instead of relying solely on the WordPress dashboard, users can execute various commands directly from the terminal,…

    Go to post