Usefulness (category)

Thumbnails for Taxonomy Elements (WP_Term_Image)

In this post I'm going to share the code that adds the ability to set thumbnails for taxonomy elements, both built-in (tags, categories) and custom. The code is tested...

Additional fields for WP_Nav_Menu

In WordPress 5.4 there are new hooks that allow you to more flexibly customize the WordPress menu (WP Nav Menu). In particular, it's now possible to easily add custom...

How do I enable links (bookmarks) in WordPress?

Before version 3.5, WordPress had a so-called "blogroll", "bookmarks", "links" - these were entries that had their own separate menu in the admin-panel, just like...

Kama_Post_Meta_Box — Create Posts Meta-fields (MetaBoxes)

In this article I'm going to share a Kama Post Meta Box class, with which you can quickly create meta-fields for posts, just by specifying them as an array. It's a kind...

Removing Widgets and Metaboxes from the WordPress Dashboard

To make it more convenient to work in the Wordpress admin, sometimes you need to disable (delete) metaboxes and widgets, In this post let's see how to do it.

...

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

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

Register a Taxonomy without attaching it to any Post Type

As I found out, WordPress does not allow the creation of taxonomies independently, without binding to any post type. I mean, we can register a taxonomy without binding...