Primoz Cigler on WordPress, Business, and Code

I put the wrong link in the MailChimp newsletter campaign. How did I fix it within minutes?

Two days ago, I sent a newsletter campaign to about 5,000 newsletter subscribers. I usually use the ‘Replicate’ MailChimp feature. The problem is that the feature leaves the original links in the content of your campaign as well. My first advice would be that you always send yourself a test email and click through all the links. But because you are reading this, most probably it’s too late.

After sending the newsletter I’ve realized that the CTA link is pointing to the wrong URL (to the blogpost instead of the pricing page).

This is me realizing what I did:

Continue with reading

This bash script can tell you all software releases in the given date period

At my company, we send monthly updates reports to our clients. They are keen to know which WordPress themes got updates in the last 30 days and what was updated. This means that I have to manually go through all our themes and manually check if the there were any updates for a given theme. We follow semantic versioning and the official theme releases are always tagged in git.

Continue with reading

PROTIP: Use `git grep`

git grep is amazing! You should start using it right now.

Here are several reasons why:

  • It is blazing fast. I doubt any code editor or IDE comes close to search in a terminal.
  • If you keep your repo lean and tidy, it will only search for your source files. Everything that’s not a source should not reside in the repository anyway (i.e. compiled css/js files, vendor/ by composer, bower_components/ by bower, node_modules/ by npm …)
  • You will be able to use different regex flavors for search.
  • You can easily filter down to specific file types.
  • You have docs at hand by typing git help grep.

Continue with reading