Is an extended warranty worth it? An extended warranty is a form of insurance, and those who sell insurance make their money on the fact they collect more money than they pay out in claims. Therefore at face value, purchasing an extended warranty (or any form of insurance) is statistically not profitable. However, I have my own guidelines on when to purchase it or not.
When working with a WordPress image, I wanted the attributes for the image. The function `wp_get_attachment_image()` provides me everything I need but in a rendered HTML string, rather than a more useful array of attributes. I was surprised I was unable to locate a good way to get this information, so I wrote this code to help me.
As of this writing, WordPress has a market share of approximately 31%. I often hear people referencing the “goal” of WordPress reaching 51% marketshare. I don’t understand this goal.
These are the steps I follow when I move the database for a website to my local computer using WP CLI.
You can look up the name servers associated with a domain name using either “whois” or “dig NS”. In some rare occasions, I have gotten back two different answers using these two techniques. In my experience, “dig NS” is the more trustworthy of the two.
Slow websites are painful. An important value to look at when optimizing your website is the TTFB (Time Til First Bye), which is the delay between when the request is sent to the server and server actually responds. These are some of my notes on improving (e.g. reducing) the TTFB of a WordPress website.
I like to use the Scriptless Social Sharing WordPress plugin to add Share buttons to my blog posts. Recently I had a client notice that because the Email Share button has target=”_blank” in the HTML markup, it opens a new tab when clicked. This is great behavior if you’re using web based email (e.g. Gmail), however if you’re using an email application on your computer, you end up with a blank tab. This code removes target blank from the email share link.