Open henryliangt opened 3 years ago
install wp-cli
test: wp cli version
if working: cd to folder. wp plugin list get all the plugins list.
wp plugin search SEO wp plugin search seo --page=2
wp plugin install jetpack wordpress-seo gutenberg wp plugin install https://example.com/wp-content/uploads/myplugin.zip wp plugin install jetpack --version=8.0
wp plugin install redirection --activate install & activate
wp plugin update akismet wp plugin delete redirection
wp plugin delete --all
wp plugin activate jetpack gutenberg wp plugin deactivate jetpack gutenberg
wp plugin activate --all wp plugin deactivate --all
wp theme wp theme list wp theme search color wp theme install colormag --activate
wp theme activate wp theme deactivate
wp theme update --all
wp post list
wp post delete 1
wp cache flush
wp plugin install --activate amp async-javascript autoptimize wordfence wp-mail-smtp disable-google-fonts gutenberg insert-headers-and-footers jetpack nginx-helper orbisius-child-theme-creator google-site-kit wordfence wp-mail-smtp cloudflare code-snippets disable-google-fonts health-check imagify litespeed-cache nginx-helper orbisius-child-theme-creator pods query-monitor seo-by-rank-math google-site-kit tawkto-live-chat woocommerce woocommerce-google-analytics-integration woocommerce-product-csv-import-suite insert-headers-and-footers wp-mail-smtp wp-rocket wp-super-cache wordpress-seo health-check-troubleshooting-mode advanced-cache.php
cd /www/wwwroot
lsattr ./ chattr -i -R ./ chattr +i -R ./
chattr -i -R /www/wwwroot/www_suamikucina/wp-content/cache/ chattr -i -R /www/wwwroot/www_suamikucina/wp-content/wflogs/ chattr -i -R /www/wwwroot/www.riarui.com/wp-content/cache/ chattr -i -R /www/wwwroot/www.riarui.com/wp-content/wflogs/
lsattr ./ su www
wp theme update --all ; wp core update ; wp plugin update --all
wp core version wp core update --version=5.4 --force wp core update --version=5.6 --force wp core update
wp theme update --all wp plugin update --all wp comment delete $(wp comment list --format=ids ) wp post list --format=ids | xargs wp post update --comment_status=closed wp post list --format=ids | xargs wp post update --ping_status=closed
mv wp-cron.php backup-wp-cron.php && mv xmlrpc.php backup-xmlrpc.php && mv wp-signup.php backup-wp-signup.php && mv wp-comments-post.php backup-wp-comments-post.php
wp plugin install --activate amp async-javascript autoptimize wordfence wp-mail-smtp disable-google-fonts gutenberg insert-headers-and-footers jetpack nginx-helper orbisius-child-theme-creator google-site-kit wordfence wp-mail-smtp
virus maintainance wp core update --version=5.5 --force && wp core update && wp theme update --all && wp plugin update --all && wp post list --format=ids | xargs wp post update --comment_status=closed && wp post list --format=ids | xargs wp post update --ping_status=closed && mv wp-cron.php backup-wp-cron.php && mv xmlrpc.php backup-xmlrpc.php && mv wp-signup.php backup-wp-signup.php && wp plugin install --activate amp async-javascript autoptimize wordfence wp-mail-smtp disable-google-fonts gutenberg insert-headers-and-footers jetpack nginx-helper orbisius-child-theme-creator google-site-kit wordfence wp-mail-smtp
daily maintain wp core update --version=5.6 --force && wp core update && wp theme update --all && wp plugin update --all && mv wp-cron.php backup-wp-cron.php && mv xmlrpc.php backup-xmlrpc.php && mv wp-signup.php backup-wp-signup.php && mv wp-comments-post.php backup-wp-comments-post.php