Change Default country and state on WooCommerce checkout

[cc lang=”php”] add_filter( ‘default_checkout_country’, ‘wpsnip_default_checkout_country’ ); add_filter( ‘default_checkout_state’, ‘wpsnip_default_checkout_state’ ); function wpsnip_default_checkout_country() { return ‘US’; } function wpsnip_default_checkout_state() { return ‘CA’; } [/cc]

Debug WordPress

Copy and paste the following into your wp-config.php file, above the “happy Blogging” comment. All errors or notices will now be saved into a debug file which you can find at:

List of useful Tools for Web Developers

I’m putting together a list of (limited) free online tools which make my day easier. I’ve personally used all of these, you won’t see anything I do not use. I believe other web developers will find these services as useful as I have! 🙂

Shoot me a message if you know of a website or service I should try out!

(the list is growing each time I get some free time)

Read more

Copy File & Folder Path from Context Menu on Mac OS

I’ve been on the hunt for the best workflow for some time. I’m always looking to save time and improve my Shortcut game! Copying a specific file or folder path to the clipboard on Mac OS has been a frustration for me. So today I figured out how to speed the process with a custom service which adds a “Copy Path” option the right click context menu. The copy path option is displayed on any file or folder, it copies the full directory path into the clipboard for easy pasting.

Automater copy file path mac

Read more

Go to Directory Path Shortcut Mac OS

If you are like me and enjoy shortcuts when navigating around then you should the “Go To Folder” shortcut. The shortcut is available when any Finder window is open (or from the desktop).

Hit Command+Shift+G

You will now see the “Go To Folder” box. Simply paste or enter the diectory path you want to go to.

Go to folder by directory path on Mac OS

NOTE: This option also allows you to enter hidden folders on your Mac.

Read more