Blog

Tips, tricks, and other valuable WordPress and web technology knowledge to save you time and make you money!

Blog

Add WP-CLI to CPanel

WP-CLI has some incredible commands, and you should be able to use them on your CPanel hosted website. The following steps will allow you to add WP-CLI to CPanel with or without Sudo Access. Step 1: Login to CPanel and Open Terminal Typically, to login to a CPanel hosted website, you would go to yourwebsite.com:2083…

Fixing Visual Composer Issues after Migration

We recently migrated a client’s WordPress site to a new server. We had to change domain names for the WordPress site as a result of the migration. For this site, we built a custom WordPress plugin that used the Visual Composer Website Builder Elements API. However, we ran into issues with Visual Composer after Migration….

How to Scrape a Website using JavaScript

Did you know you can use javascript in the Chrome browser console to scrape data from just about any website on the internet? If you didn’t know, now you know! And we’ve got a cool example here that you can try yourself. We hate do things manually so sometimes when data is not quite in…

Non-Static Method Should not be Called Statically

I just ran into the non-static method should not be called statically error when building out some functionality for a client. In short, I needed to instantiate the class that I was using before running one of those class’ methods. See the initial code that threw the error and the code that fixed it below:…

Install WordPress Plugins

There are 4 main ways to install WordPress Plugins. However, we’re going to focus on showing you how to install and activate WordPress plugins from your WordPress dashboard. There are 3 steps involved in installing and activating WordPress plugins for your WordPress website. WordPress Dashboard: You can manually install WordPress Plugins via the WordPress dashboard…

Install WordPress Plugins via SSH

We show you the 4 simple steps to installing and activating WordPress plugins via SSH below. For the other ways to install WordPress plugins, see our Install WordPress Plugins post. Step 1: Connect via SSH In order to connect to your WordPress site’s server via SSH, a hosting provider may give you an SSH key…

$wpdb->get_row() Only Returns a Single Row

If you are trying to get an array of records that match a select statement using wpdb->get_row(), I’m afraid you are going to be disappointed. $wpdb->get_row() only returns a single row when you are using it to retrieve records from a WordPress database. Return Multiple Rows with $wpdb->get_results() However, if you would like to retrieve…

Change Where Mac Saves Screenshots

My Mac was annoyingly slow for a couple weeks and I couldn’t figure out why. I did a little research and found out that having items in your Desktop folder significantly slows down your computer…and I had over 2,000 items in there. None of the items in there were useful, they primarily consisted of client…

Backup Heroku Config Vars

I wrote a simple website scraping script to get a backup of a Heroku app’s Config Variables. Step 1: Load jQuery into the Chrome Console Check out our post on loading jQuery in the Chrome Console at https://blog.wplauncher.com/run-jquery-in-chrome-console/ Step 2: Pull out the Config Keys and Config Values associated with the Heroku Config Vars Now…

Import Woocommerce Products into a Demo WordPress site

Here at wplauncher we create a BUNCH of live site previews using WordPress theme demo content. When setting up these WordPress theme demos, we often find ourselves importing sample Woocommerce products. This allows our customers to see how they can set up their own shop with one of the themes in our marketplace. In the…

Want to use our API?

Sign up below and we'll let you know when it's available for you to start your own WordPress hosting company.