wpcli w3tc - Purge cache from W3 Total Cache plugin using WP-CLI

Purge cache from W3 Total Cache plugin using WP-CLI

Here are some useful commands to clear cache from the terminal with wpcli: cdn_purge purge URLs from CDN and Varnish flush all flushes all cache related to W3TC (Page Cache, OC, DB Cache, Minify, etc.) flush page flushes pages cache only flush posts flushes both pages & posts cache flush database flushes DB cache flush … Read full article →

Display all Active WordPress plugins - Display all Active WordPress plugins

Display all Active WordPress plugins

Here is a simple WordPress plugin that will create a [activeplugin] shortcode: Add it as plugin and activate, then add shortcode [activeplugins] anywhere on your website and it will display all active plugins:

top 5 wp backup plugins - Top 5 WordPress Backup plugins

Top 5 WordPress Backup plugins

Website backups are critical for WordPress users who want to build a website on their own.Backing up the site on a regular basis can help us not only save the prior data, but also restore it quickly in the event of technical issues, website attacks, and other problems. “Whew! Glad I didn’t waste my time … Read full article →

Download older Plugin Versions from WordPress.org  - Download older Plugin Versions from WordPress.org

Download older Plugin Versions from WordPress.org

You can download older versions of any plugin hosted on WordPress.org directly from the website or from WP-CLI. To download older plugin versions from WordPress.org click on the Advanced view link scroll down to the end of the page and under Previous Versions select the version that you would like to download. that’s it! Another … Read full article →

how to hide a plugin from wordpress plugins page - How to hide a plugin from the WordPress plugins list 🙈

How to hide a plugin from the WordPress plugins list 🙈

wp-admin/plugins.php displays the plugins list table using the array $plugins_all which contains information on all installed plugins. We can use pre_current_active_plugins hook to perform actions before the plugin information is displayed on this page. TIP: The best way to understand what a hook does is to look at where it occurs in the source code. … 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:

How to Automatically Create Post Tags from Post Title - How to Automatically Create Post Tags from Post Title

How to Automatically Create Post Tags from Post Title

Here is a simple WordPress plugin that will automatically add tags from the post title when saving posts. To use this plugin, simply copy and paste the code into a new file and save it as auto-tag.php in the wp-content/plugins directory of your WordPress site. Then, go to the Plugins page in the WordPress admin … Read full article →