WordPress at Your Fingertips

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

$wpdb->update — array for $where pframeter

Specified value for $where field will turn into IN ( comma separated array values ) when queried.

You can't specify array for the parameter $where in...

3 ways to Create Loop in WordPress - WP_Query{} get_posts() query_posts()

An article for beginners and those who are already a little familiar with WordPress, which should debunk all the myths about the different types of loops in...

The Loop in WordPress

The Loop in WordPress is processing posts one by one that are in the current global data and output information about each post. The Loop gets an array of objects...

The functions.php theme file in WordPress

Everyone familiar with WordPress has heard of the functions.php theme (template) file. However, not everyone understands its purpose, seeing in it only a file that...

Bug with moving uploads folder

Seems I've run into a bug in WordPress, which is related to the wp-content/uploads directory. Although I will not claim that this is a bug, but the logic is...

Must-Use plugins in WordPress

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

wp-content Directory

WordPress consists of 3 folders wp-includes, wp-admin, wp-content and several files next to these folders.

All files and folders except wp-content -...

Kama_Cron

A small class for easily adding WP Cron tasks (jobs).

This Class allow you to create WordPress Cron tasks in a quick and simple way. In order not to confuse anything,...

How to revert to Classic Editor in WordPress (disable Gutenberg using code or plugin)

In WordPress 5.0 new content editor Gutenberg was added into the core. It completely changed post editing admin-page and the way the content was written. On some sites,...

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

Get several adjacent posts in one query

There are number of functions in WordPress to get one of the adjacent (neighboring) posts to the current one: get_previous_post() and...

Emails In WordPress

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

List of File Extensions and Their MIME Types

When uploading a file to WordPress website, WordPress will check the MIME type of the file. Sometimes it's useful to know what the mime file type of a particular file...

How Allow to Upload Forbidden File Types

WordPress does not allow to upload to the library any type of file you want - there are limitations. Files of non-standard (not allowed, forbidden) types cannot be...