Categories

Wordpress (7)

Wordpress

Most Popular Articles

 Change WooCommerce ‘Ship to a different address?’ Default State

By default the extra shipping address field in WooCommerce checkeout are shown.   To enable...

 Sort shipping by price (Low to high)

If you have several shipping rate on the cart page, this code will automatically sort them by...

 Check if the current logged-in user is an administrator

  if(current_user_can('administrator')) { // code here }

 change contents in files to https

replace content in all files, from stringA to string B: find . -name "*.*" -exec sed -i...

 Register Custom Post Type

// REGISTER CUSTOM POST TYPES // You can register more, just duplicate the register_post_type...