According to the official WordPress recommendations you should not disable the WordPress REST API as this will break the “WordPress Admin” functionality. For example, the WordPress Block Editor requires the WordPress REST API and if you disable it you won’t be able to publish or update your posts anymore. However, you can use a filter […]
wordpress
WordPress: Enable REST API (rest_disabled: 401/403)
The WordPress REST API has become a part of the WordPress core starting from the version 4.7. It is, for example, required by the WordPress Block Editor, and if the WordPress REST API is disabled, you won’t be able to publish or update your posts: “Updating failed. REST API disabled.“. Normally, the WordPress REST API […]
WordPress: Auto-Post to Telegram Channel (No Plugin)
You can easily increase visitor traffic to your WordPress website by integrating it with a Telegram channel. However, manually sharing every blog post to the Telegram channel can become a time-consuming task – especially if you publish an article every day. In this note i will show how to create a callback function that will […]
WordPress: Debug Mode – Enable & Locate Logs
Do you need to find and fix some errors in a WordPress website? The WordPress comes with a built-in debug mode that can be enabled in the website’s wp-config.php file. This note shows how to enable the debug mode in the WordPress and how to find the location of the debug.log file.
WordPress: Comment Hook – Trigger Action Example
Actions are the hooks that the WordPress core launches at specific points during execution, or when specific events occur. To trigger the action firstly you need to write a custom function known as a callback, and then register it with a WordPress hook using the add_action function in your child theme’s functions.php file. This note […]