wp
-
Handling Media with REST API
As we have seen previously how easy it is to create and interact with WordPress using its REST API. This blog will explore how to use this REST API to handle media on our site. Using Default REST API Route To upload an image using the default media route, we can use a POST request…
-
WordPress REST API Internals
When working with WordPress, REST API is one of the most powerful feature, whether building custom plugins, integrating external applications or simply extending the functionality of the site. This blog explores the internals how this works. The Request Flow The process begins as soon as a request is made to the WordPress siteโs REST API…
-
WP-CLI Custom Commands
As we have seen previously, WP-CLI offers a great way of interacting with WordPress through the command line. However, the true potential of WP-CLI is unlocked when we create custom commands for our specific needs. This blog explores how to create and utilize custom WP-CLI commands to streamline our workflow. Setting Up Our Custom Commands…
-
Working with the WP_Rest_Controller Class
As we have seen previosly the REST API is an essential tool for creating dynamic and interactive web applications using WordPress. The WP_REST_Controller class is a fundamental part of this API, providing a structured way to handle RESTful routes and endpoints. What is WP_REST_Controller? The WP_REST_Controller class is an abstract class which provides basic structure…
-
Introduction to WP-CLI
As WordPress developers and administrators we know how crucial it is to manage our websites efficiently and effectively. While the WordPress admin dashboard offers a robust GUI for managing sites sometimes we need something more efficient, thats where WP-CLI comes in. What is WP-CLI? WP-CLI is a command-line tool that allows us to interact with…
-
WordPress REST API: Creating and Retrieving Posts
WordPress provides a robust and interactive way to extend its core functionality by providing the REST API. It enables us to perform create, update, read and delete operations on posts and custom posts types. Registering Custom Routes Before we start to create and read posts first we need to register routes to access this functionality.In…
-
Working with WordPress REST API
When building WordPress applications, one of the most powerful tools that we have at our disposal is the REST API. REST APIs (Representational State Transfer API) provide a structured way to interact with a WordPress site enabling us to retrieve, create, update, and delete data remotely. What is REST API? A REST API is a…
-
Debugging in WordPress with Xdebug
When it comes to debugging a WordPress site pinpointing the problem in the codebase with multiple plugins can prove difficult, by Integrating XDebug in LocalWP we can very easily debug websites right inside VSCode. Setting up the Environment To get started we first need to set up the environment. First we need to have LocalWP…
-
WordPress Plugin Development Basics:ย VII
Like everything else in WordPress even the settings page is very customizable, custom settings and options can be added by a plugin. Settings menu allows us to provide a custom interface where users can input and save various configuration options from the WordPress admin dashboard. Adding the Settings Menu A top level menu can be…
-
WordPress Plugin Development Basics:ย VI
When building for WordPress, AJAX is a term which we hear very often, this blog shows how to implement a autocomplete search tailored to a custom post type meta box using WordPress AJAX. Registering the Custom Post Type Firstly, we need to define our custom post types to make query against. Here, we will use…