Codex (category)

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...

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...

Passing Variables by Reference in apply_filters(), do_actions()

Passing variables by reference in WordPress filters and events, and passing objects by reference.

Feeds (RSS) in WordPress

This article explains the concept of feeds (RSS) in WordPress, how they work, how to disable them, the types of content and feed formats, feed URLs, and the PHP...

Number of Elements per Page for WP_List_Table Tables

Tutorial on adding customizable pagination to tables created using WP_List_Table in WordPress admin.

WordPress Reserved Variables

Here you find reserved names which should not be used as variable names for POST, GET requests. Also it is not recommended to use them when creating custom post types,...

3 Ways of Creating a WordPress Page Template

The article shows the ways of creating templates for WordPress pages. Each way has its pros and cons, and before I start, allow me to introduce the meaning of the...

Must-Use plugins in WordPress (mu-plugins)

Must-use plugins (mu-plugins) - mandatory plugins that are installed in a special /wp-content/mu-plugins folder. They are always active for the site and all sites of...

API Settings (Options)

This article explains the WordPress Options API, detailing how to register, add, and display option fields and sections in settings pages.

Auto-updates in WordPress

In October 2013, WordPress version 3.7 was released, and along with it came a new feature - automatic updates.

Autoupdate became the brightest, most useful, and...

SHORTINIT constant: WordPress environment with minimal load

I was worried about a question: how can I use $wpdb object and site database with which I work, but with minimal loading of WP environment. Sometimes it is necessary,...