2019 August

Chuyên mục gồm các bài viết chia sẻ về chủ đề Lập trình / Hệ thống thông tin

TIP: How to delete all your orders & coupons and save you time

1 – Make all orders & coupon as “trash”: With this sql request: update wp_posts set post_status = ‘trash’ where post_type = ‘shop_order’; update wp_posts set post_status = ‘trash’ where post_type = ‘shop_coupon’; You can execute it on phpMyAdmin or from the DB plugin if you have one that lets you to execute requests, like… read more »

Change and Update WordPress URLS in Database When Site is Moved to new Host

UPDATE wp_options SET option_value = replace(option_value, ‘http://www.oldurl’, ‘http://www.newurl’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’; UPDATE wp_posts SET guid = replace(guid, ‘http://www.oldurl’,’http://www.newurl’); UPDATE wp_posts SET post_content = replace(post_content, ‘http://www.oldurl’, ‘http://www.newurl’); UPDATE wp_postmeta SET meta_value = replace(meta_value,’http://www.oldurl’,’http://www.newurl’);

Sidebar