WP-CLI nice to know
Inside your www folder
wp plugin list
wp plugin deactivate xxxxxxx
wp user list
wp user create Thomas thomas@example.mail --role=administrator
wp option
wp option get xxxx-wc-chkout-cnfg-_class_billing_postcode (get the value from db)
wp option update xxxx-wc-chkout-cnfg-_class_billing_postcode VERDI (change to value of choice)
wp cache flush (Cache flush)
wp db export (Backup)
----
Backup the database to a specific file:
wp db export ../my_wordpress_db.sql
Using this command will backup the database to a file called “my_wordpress_db.sql” and will put it in the folder above the current one (or `../`). This is done as a security measure to ensure no one can download your database. ---- wp search-replace 'http://www.domain.no' 'https://www.domain.no' //nice to use after change to https (https://wordpress.org/plugins/really-simple-ssl/ is nice to install and activate after search and replace)