fbpx

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

Blog

Add Comments to PHP File

There are two methods to add a comment to a PHP file: multi-line comments and single-line comments. Method 1: Multi-Line Comments Multi-line comments, also known as block comments, are added to PHP files using the following structure: /* multi-line comment */ For example, a PHP file would look like this: Method 2: Single-line Comments Single-line…

Fix Zapier 403 Error

I was working with a client recently and they were receiving a 403 error from Zapier. Here is how I fixed up a Zapier 403 error: Allow Access to and Whitelist the xmlrpc.php file Some web hosting platforms deny all access to the xmlrpc.php file because it “counteracts a potential brute force attack where an…

Fix “E: Could not get lock /var/lib/dpkg/lock” Error

I ran into the “E: Could not get lock /var/lib/dpkg/lock” error the other day while running an Ansible playbook on a client node running Linux. “E: Could not get lock /var/lib/dpkg/lock” is a frustrating issue to solve as there isn’t very good documentation out there about how to fix it up. The key thing that…

Change Section Background Color in Salient

It can be difficult when you start learning how to edit a page or post in WordPress. If you buy the Salient WordPress theme, add on top of that having to learn how to edit a page or post using the Visual Composer. There are five steps involved in changing a section background color in…

SQS Queue in Laravel Not Working

I recently switched a client site to use AWS SQS as the queue provider instead of a database to speed things up a bit. After creating a standard Queue in SQS, adding the AWS SQS credentials to the config/queue.php file per Laravel’s documentation, and updating the QUEUE_DRIVER in the .env file, I could see that…

Connect RDS to Lightsail

I created an RDS instance for a client the other day and needed to connect it to their Lightsail instance. I had never done this before and the documentation out there isn’t as simple as it should be. So, how do you connect RDS to Lightsail? There are 4 simple steps to connecting your RDS…

What is $() in Linux?

While I was going through a tutorial, I saw $() being used in a Linux Shell command and wasn’t sure what it did. $() is a command substitution It turns out, $() is called a command substitution. The command in between $() or backticks (“) is run and the output replaces $(). It can also…

Install WP CLI

We break down the installation process for the WordPress Command Line Interface (WP CLI) into the following 3 steps. Step 1: Check Requirements Before you can WordPress Command Line Interface (WP CLI), you need to check that your environment has the following list of requirements: UNIX environment – Linux, for example, is the most popular web…

Update User Password WP CLI

Updating a user password using WP CLI (WordPress’ Command Line Interface) couldn’t be easier! You simply have to start off by getting the ID of the user that you want to update and then you update the user’s password. These steps assume that you have installed WP CLI on your server. If you haven’t already…

How Can I Add a User Through SQL

Adding a user through SQL involves two parts. First, adding a record into the WorPress users table and then second adding a record into the WordPress usermeta table. The table prefix will likely be different for different WordPress installations. In the code snippets below wp_ is the table prefix, however for your installation it may…

Want to use our API?