WordPress .htaccess file - WordPress .htaccess file examples

WordPress .htaccess file examples

The .htaccess file is a configuration file that is used by the Apache web server to control various aspects of how the server functions. In WordPress, the .htaccess file is used to control various settings related to the permalinks of your website, as well as to protect your website from various types of attacks. The … Read full article →

List of all WordPress Constants UPDATED - List of all WordPress Constants (UPDATED)

List of all WordPress Constants (UPDATED)

WordPress.org has a list that explains the default and most commonly used wp-config.php constants. But there are many more constants that are not covered in this guide and can only be found when browsing the WordPress core itself. Here I will do my best to list all WordPress constants, and keep the list up to … Read full article →

Bulk Delete Millions of WooCommerce Products using SQL - 🗑️ Bulk Delete WooCommerce Products using SQL

🗑️ Bulk Delete WooCommerce Products using SQL

While building and testing WooCommerce addons, I find myself in need of quickly deleting all WooCommerce products from the database. WPCLI is the easiest way to go, as you can achieve the desired results via a single line. NOTE:  if your database prefix isn’t the default wp_, you’ll need to change it with your actual database … Read full article →

WordPress FS METHOD explained - WordPress FS_METHOD explained

WordPress FS_METHOD explained

The constant FS_METHOD determines the filesystem method that WordPress should use for reading, writing, modifying, or deleting files. To set a different method for file editing, simply edit your wp-config.php file and add the line: The FS_METHOD forces the filesystem method and accepts the following values: Method Description direct Use Direct File I/O requests from within … Read full article →

Missed schedule error wordpress - WordPress Missed Schedule Error

WordPress Missed Schedule Error

WordPress Missed Schedule error means that the Scheduled post was not published for some reason: There are a few possible reasons for the WordPress Missed Schedule Error: 12.12.2022 UPDATE: There is a bug in WordPress 6.1 that causes this error WordPress Timezone Settings WordPress Timezone Settings are located under Settings → General From there, make … Read full article →

Show Last Updated date for Posts - Show Last Updated date 📅 for Posts

Show Last Updated date 📅 for Posts

Here is a simple code snippet that you can add to your theme functions.php file to show the “last updated” date in your posts. A new line will be added to the beginning of the post content if the last modified and published time is different:

display a list of wordpress core files anywhere on your website - Display List of all WordPress core files

Display List of all WordPress core files

Here is an example of a simple WordPress plugin that uses a shortcode to display a list of files from the WordPress repository on GitHub: <?php /* Plugin Name: List WordPress Core Files Description: Displays a list of files from the WordPress repository on GitHub. */ function wpfl_shortcode_handler( $atts ) { // Parse shortcode attributes … Read full article →