Category: WordPress

PSR-12 and Composer Autoloading for WordPress Plugins – A Practical Guide
If you have worked on a WordPress plugin or any PHP project, you have probably run into messy code, inconsistent formatting, or struggled with class autoloading. This is where PSR-12 comes in. PSR-12 is a PHP coding standard that ensures your code is clean, consistent, and compatible with modern PHP practices. In this article, we…

Building a Modern WordPress Plugin with React and Vite
WordPress plugin development has come a long way. While PHP still powers the backend, modern plugins often need interactive, dynamic frontends. From dashboards to job boards, handling complex user interfaces purely with PHP can become messy and hard to maintain. That’s where React comes in — it allows you to build responsive, state-driven UIs while…

How to develop your own country selection page on WordPress
When building a WordPress site that serves users from different countries, creating a country selection page can significantly enhance user experience. This guide will walk you through developing a country selection page using JavaScript, explaining key concepts like Immediately Invoked Function Expressions (IIFE) and cookies. Using JavaScript IIFE for country redirection allows the redirection to…

How to enable Mintpay for specific categories on WooCommerce
If you’re in Sri Lanka and running a WordPress e-commerce store via WooCommerce, by now you might have integrated Mintpay as a payment option for your customers or if you are from a web development agency, you might have worked on e-commerce websites that require this payment option that allows your client’s customers to buy…

How to change strings/labels in WordPress and on Dokan
Let’s say you’re implementing a multivendor marketplace on a WooCommerce website, but you do not want to use the strings/labels/words “vendor” and “vendors”, instead you want to call them “brand” and “brands”. There are a couple of ways you can go about this: Method 1 Dokan recommends using a plugin called Loco Translate. This works…




