Reset WordPress password from the command line - Reset WordPress password from the command line

Reset WordPress password from the command line

1. log in to the MySQL: mysql -u root -p; 2. Select the database: use database_name; 3. List all users: select * from wp_users\G 4. Change the password for the user you require: UPDATE wp_users SET user_pass=MD5(‘new_password_here’) where ID=user_id_here;

create wpcli aliases - Create WP-CLI Aliases

Create WP-CLI Aliases

IF you use the same commands often you can save them as aliases so that you have them always available. For example, the following commands will check if WP core, installed plugins and themes have updates available: You can combine the commands into a one-liner: and you can create an alias for this command: so … 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 →

softaculous backup - How to Backup a WordPress site using Softaculous

How to Backup a WordPress site using Softaculous

If you’ve installed your WordPress installation via Softaculous or Installatron, you can set backups directly in the WordPress management screen. Step 1. Simply login to your cPanel and scroll down to web applications section. Step 2. Choose the installation that you want to set backups for and click on the backup button, as shown in the screenshot … Read full article →

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 →

WP MEMORY LIMIT vs WP MAX MEMORY LIMIT - WP_MEMORY_LIMIT vs WP_MAX_MEMORY_LIMIT

WP_MEMORY_LIMIT vs WP_MAX_MEMORY_LIMIT

In short: WP_MEMORY_LIMIT is the default limit set for the front end, but it can be raised up to WP_MAX_MEMORY_LIMIT in wp-admin pages. WP_MEMORY_LIMIT WP_MEMORY_LIMIT allows you to specify the maximum amount of memory that can be consumed by PHP. This setting may be necessary in the event you receive a message such as “Allowed memory size of X … Read full article →

Disable WordPress comments based on User Language - Disable WordPress comments based on User Language

Disable WordPress comments based on User Language

If you want to disable comments in WordPress based on the user’s language, you can do so by using the following steps: Step 1. Install and activate the “GeoIP Detection” plugin. This plugin allows you to detect the user’s language based on their IP address. Step 2. Add the following code to your theme’s functions.php … Read full article →

Best WordPress membership plugins - Best WordPress 👥 membership plugins

Best WordPress 👥 membership plugins

Using a WordPress membership plugin to earn revenue through paid memberships is a fantastic idea. They provide you the option of restricting access to some or all content to subscribers only. Subscription payments can be one-time or ongoing, with the latter providing a stable source of income. Types of membership sites WordPress membership sites (also … Read full article →