shane.blog WordPress Things

CategoryDevelopment

Loop through an array

L

Today I needed to loop through the output of a command on the WP CLI. The most simple way I could think to do that was to save the output of the command into an array and loop through it. What I did was use wp site list to get the subsites on a WordPress Multisite. I needed to pass each of those sites as an argument to a command and give it some time in between each execution since it was going...

WooCommerce Services and the Nexus: Tax calculations are not shown

W

In WooCommerce you can use WooCommerce Services to make tax calculations easier. This uses the TaxJar API to do that for you. Sometimes though, you will have everything configured correctly, but taxes still show as $0 or not at all on the front end of your site. This is often because there is no Nexus available. To confirm this, make sure you have Automated Taxes enabled. Now let’s check...

Update a plugin with FTP

U

Updating or installing a WordPress plugin using FTP 1. What is FTP? 2. Why would I use FTP and not the update plugin button? 3. WooCommerce Extensions What is FTP? FTP stands for File Transfer Protocol. It’s a way for you to drag and drop files from your desktop to the server hosting your website. This is a great way to manage your files. Some hosting companies provide you with a web...

macOS Sierra, Laravel Homestead & VVV

m

I updated to MacOS Sierra and Laravel Homestead stopped working. I kept getting some pretty buggy errors, so I took this as an opportunity to make the switch to VVV. It’s not the same of course, but it does fit what I do perfectly, so the switch makes a lot of sense. One of the things I had to do before installing VVV was install xcode. I kept getting this error. xcrun: error: invalid...

Bitwise in Fresno

B

I recently moved from the San Francisco Bay Area to Fresno California. We live far from town in the country and as such, the internet is not always reliable. I was amazed to find the Bitwise building. It’s a really great place that offers a co-working office. I am currently renting a desk here in a section they call Desk Hotel. The building is filled with smart people running businesses, several...

shane.blog WordPress Things