It's all about my technology & social adventures…

Tag PHP

Embracing PHP Class Composition: A Modern Approach Over Inheritance

Introduction: Object-oriented programming (OOP) in PHP has traditionally relied heavily on inheritance as a means of code reuse. However, as developers face the challenges of maintaining and extending complex systems, a shift towards class composition over inheritance has gained momentum…. Continue Reading →

A Comprehensive Guide to PHP Composer and Namespace: Simplifying Dependency Management and Autoloading

Introduction: In the ever-evolving world of PHP development, tools like Composer and concepts like Namespaces have become indispensable for managing dependencies and organizing code efficiently. This blog post aims to provide a detailed guide on PHP Composer and Namespaces, along… Continue Reading →

Google Search Console: Image size smaller than recommended size

Have you noticed number of warning increasing for your sites AMP in Google Search Console regarding Image size smaller than recommended size? Did you confused what has changed over night in your site? Nothing to get confused, Google has changed… Continue Reading →

WordPress get_terms returns empty array for custom taxonomy

get_terms returning empty array even though there are many terms it has? Creating custom taxonomies are common when we design complex web applications. I hear your mind voice, We create a custom taxonomy for simple applications as well. Yeah, that’s right…. Continue Reading →

Hide PHP Warnings and Notices in WordPress

I recently came across some wired issue, were PHP warnings and notices are shown on the website even when we set WP_DEBUG to false in wp_config.php file. This happens mostly with the cheap shared hosts, were this settings won’t be respected and… Continue Reading →

Custom media button creation with wp.media

All most every WordPress users will use media in their posts, pages and comments. So media files playing a vital role in our WordPress world. WordPress will provide you an option to add media files in to your post by… Continue Reading →

Goodbye `get_terms`, Welcome `WP_Term_Query`

From WordPress 4.6, we have a new class called ​WP_Term_Query which will help us in querying the taxonomies easily. This class will give us more flexibility and ease of use like other classes like WP_Query,WP_User_Query, and WP_Comment_Query in WordPress. The main… Continue Reading →

WordPress REST API and OAuth 1.0a

WordPress REST API and OAuth is a perfect combination for many applications which runs WordPress as a backend. But for the beginners OAuth handshaking will be a bit complex one to understand. If you are is this category, don’t worry… Continue Reading →

WordPress: Post/Page creation workflow

Developing WordPress site for client or your own site? Then you should know the basic workflow of Post/Page creation hooks. Okay! Let’s get started with the hooks. What is hooks? Hooks are just a functions, which will help us to… Continue Reading →

How to create custom filter in WordPress?

  Basically WordPress hooks are categorized into two types; Action hooks Filter hooks Action hooks: As name says, these hooks are called when an action is performed. Action hooks allow you to execute your custom functions which are referred to as… Continue Reading →

« Older posts

© 2024 Dhanendran's Blog — Powered by WordPress

Theme by Anders NorenUp ↑