PHP

PHP remains one of the most important technologies in web development. Many of the most popular content management systems are built with PHP, and the majority of hosting providers offer built-in support for it. Because of this, PHP continues to play a major role in building and maintaining websites.

Even if you primarily work as a frontend developer, sooner or later you will likely encounter PHP in real projects. Understanding the basics of the language can make everyday tasks much easier, especially when working with templates or integrating frontend code with a backend system. In this category you will find articles that cover practical aspects of PHP, including examples of common language constructs such as loops, conditions, and other fundamental programming patterns that are frequently used in web development.

wordpress

How to Remove the jQuery Migrate Script from WordPress

Last updated: 26.10.2025
Views: 305
If your WordPress project uses jQuery, then by default, WordPress also loads the jQuery Migrate script along with it. In 99% of cases, you don’t actually need this script. jQuery Migrate restores support for outdated features that have already been removed from the main jQuery library. You can determine whether jQuery Migrate is loaded by checking for a message in your browser’s console ...
php

Iterating Elements of Array without Loops

Last updated: 27.08.2025
Views: 354
The examples are very abstract because there are cycles. Our condition will be as follows. It is necessary to select all elements of the array by a given attribute. Or, to put it more precisely, it is necessary to filter the array. There are several solutions. The most suitable option in PHP is to use the built-in function array_filter(). Let's imagine that it does not exist either. We write it...
wordpress

Fixing Image URL in ACF (Advanced Custom Fields)

Last updated: 23.02.2026
Views: 394
The ACF (Advanced Custom Fields) plugin is a great and convenient tool for extending the functionality of Wordpress. ACF allows you to add custom fields to your project's admin panel. When using the image field, I usually use the URL to get the value. And in the template, when outputting the image field value, the correct value does not always come. Sometimes, instead of the URL, an ID come...
wordpress

How to Remove the “Website” Field from the WordPress Comment Form

Last updated: 26.10.2025
Views: 748
By default, WordPress includes a "Website" or "URL" field in its comment form. While this may be useful in some cases, it often attracts spammers who leave low-quality comments just to insert backlinks. If you're looking to reduce spam and keep your comments section clean, removing the URL field is a simple and effective step. You can do this easily by adding a small PHP snippet to your theme’s...
php

Caching Data to a File Using PHP

Last updated: 06.04.2026
Views: 364
Sometimes it becomes necessary to limit the number of requests to an external data source, especially when the data does not change frequently. For example, this can be useful when working with APIs that provide exchange rates, weather data, or other information that is updated only periodically. Making a request on every page load in such cases is inefficient and can slow down your application. ...