How to install Google APIs Client Library for PHP using Composer

These are the steps I followed to install the Google APIs Client Library for PHP using Composer.

Installing PHP dependencies in production using Composer

How I install the PHP dependencies on the production server using Composer.

Calculating the number of days between two dates in PHP

Learn how to calculate the number of days between two dates in PHP.

How to fix the mysql_connect fatal error in WP-CLI

How to fix the “Call to undefined function mysql_connect()” error in WP-CLI.

How to flush permalinks in WordPress

Refreshing WordPress permalinks is very simple to do and can solve various problems with custom post types like 404 errors.

[Solution] Cannot add more than one item to a list block in WordPress 6.1

Learn how to fix the issue where you can’t add more than one item to a list block after updating to WordPress 6.1.

How to calculate estimated reading time with PHP

Create a PHP function that retrieves the estimated reading time in minutes for a provided text. Learn how to implement this on a WordPress site.

Building a design system: Setting breakpoints for responsive design

In this post, we will focus on defining the CSS breakpoints that will be used to create a responsive design.

You should use a prefix in your WordPress code

Why WordPress developers should follow this best practice of using a prefix in their code.

Improve site performance with WordPress Transients

Use WordPress built-in Transients tool to quickly improve site performance.

How to rename WordPress admin menu items

Learn how to customize the labels of menu items in the WordPress admin dashboard.

The ultimate gitignore for WordPress projects

Set the gitignore file to dynamically include only the necessary files of your WordPress project.

WordPress cron jobs

My complete guide on how to automate repetitive tasks with WordPress cron jobs.

How to fix old URLs in Yoast SEO breadcrumbs

Learn how to fix the issue of Yoast SEO breadcrumbs linking to an old URL.

Automatic update of CSS / JS file version in PHP and WordPress

Learn how to automatically update a file version when it changes with PHP and WordPress.

How to customize (or disable) the automatic resizing of big images in WordPress

Learn how to modify the threshold for the WordPress auto-scaling feature or disable it completely.

Restricting access to WordPress REST API

Learn how to restrict access to the WordPress REST API to improve the security of your WordPress site.

Preventing direct access to PHP files in a WordPress site

Implement this best practice of preventing direct access to PHP files to improve the security of your WordPress site.

Sanitizing array values in WordPress

Learn how to sanitize an array of email addresses in WordPress.

How to make Gutenberg embed blocks responsive

Learn how to enable the responsive feature of the embed blocks in WordPress block editor (Gutenberg).