Codex (category)

WP 6.3: async and defer attributes when registering scripts

WordPress 6.3 introduces support for registering scripts with the async and defer attributes, improving site performance and loading strategies.

The "-rotated" suffix for images, or what WP does with image orientations

The article explains how WordPress handles image orientations and the use of the "-rotated" suffix for images. It also discusses how to disable the image orientation...

Translations in JS Files

The article introduces enhanced JavaScript localization in WordPress 5.0, using wp_set_script_translations(). It covers creating translation JSON files from PO files...

List of All WordPress Options

Here is the entire list of WordPress options, which are located in the wp_options table. You can see all the options for your site on the hidden admin page...

wp.template — HTML templates for JavaScript in WordPress

This article explains the usage of wp.template in WordPress for creating HTML templates for JavaScript and provides examples of its implementation.

Emails In WordPress

This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.

How Notifications Work in WordPress (Pings, Trackbacks) - xmlrpc.php File

Understanding how notifications (pings, trackbacks) work in WordPress and how to effectively manage them. Learn about the differences between trackbacks and pingbacks,...

Do plugins slow down the WordPress?

This short article is my attempt to answer the common question — what is better: install a plugin to add desired functionality or add custom code in functions.php?...

Anonymous PHP functions in WordPress hooks

Exploring the use of anonymous PHP functions, also known as closures or lambda functions, in WordPress hooks and discussing their advantages and disadvantages.

ThickBox API: Modal Window in WordPress Admin

This article explains the usage of the ThickBox API for creating modal windows in the WordPress admin area, including examples and parameters for customization.

Page Template for any Post Type in WP 4.7

Support for page templates ("page" post type) has been unchanged for 12 years. And it helped developers to conveniently create templates for pages, but it has always...

@import Styles of a Child Theme via PHP

Using child themes in Wordpress is a valid way to modify an existing theme, but the CSS @import directive is slow, so it's worth avoiding.

It takes 200ms to load the...

Pagination for WordPress Single Post (Post Content)

Not everyone knows that in WordPress a single post or page can be divided into several parts, thus organizing the pagination for the post. To do this you need to use...

Global Variables of WordPress

We often use functions to retrieve some data on a page and are unaware that this data can be taken from global variables. For example, the name of the author on the...

HTTP API WordPress

Introduction to using the HTTP API in WordPress, including the basics of sending requests and handling responses. Learn about the functions and their parameters, as...