Prevent category updates in WordPress Woocommerce REST API

I take care of an E-Commerce that receives the products automatically through the physical store’s system. The physical store automatically syncs products including names, prices, quantities and categories. The physical store system doesn’t allow me to choose the items I want it to update. It simply sends this data via REST API and is automatically … Read more

WordPress – Display Random Number Between 190-250

The way I would accomplish this is with a shortcode, like this: Putting that code in your theme’s functions.php file would allow you to enter “Today I had [random_number] Coffees.” and display a random number between 190 and 250. It’s also flexible; you can do something like [random_number min=”1″ max=”10″] to get a random number between 1 … Read more

cannot change admin password, wordpress on godaddy

Goto PHPMYADMIN and run below commands in the SQL button. Change username and password given in query. INSERT INTO wp_users (user_login, user_pass, user_nicename, user_email, user_status) VALUES (‘admin123’, MD5(‘pass123’), ‘firstname lastname’, ’[email protected]’, ‘0’); INSERT INTO wp_usermeta (umeta_id, user_id, meta_key, meta_value) VALUES (NULL, (Select max(id) FROM wp_users), ‘wp_capabilities’, ‘a:1:{s:13:”administrator”;s:1:”1″;}’); INSERT INTO wp_usermeta (umeta_id, user_id, meta_key, meta_value) VALUES (NULL, (Select max(id) FROM wp_users), ‘wp_user_level’, ’10’);