Uncategorized

How to avoid the JavaScript error “cannot read property ___ of undefined” without nesting logical AND (&&)

If we’re working with pulling data from APIs in JavaScript and React we may encounter the error “cannot read property [property name] of undefined. This occurs when we try to read a value from a nested object, but the object’s parent object has returned undefined: We are trying to pull data that we think should …

How to avoid the JavaScript error “cannot read property ___ of undefined” without nesting logical AND (&&) Read More »

Tops of mountains over clouds with sunset.

iMovie – Audio with Image Overlay – How to Add Image Overlay Over Large Audio Files on iMovie on iPhone

Today we’re going to discuss how to make an iMovie which is an audio file with an image background, using iPhone’s Voice Memo app and a photo. Summary To quickly make an iMovie with an image overlay over a large audio file, drag the image overlay out to 30 seconds or 1 minute, then duplicate …

iMovie – Audio with Image Overlay – How to Add Image Overlay Over Large Audio Files on iMovie on iPhone Read More »

Construction site.

How to Edit a Variable/Function in a Plugin Using WordPress Hooks via functions.php ⚒

It is sometimes possible to modify plugin functions without editing the plugin file directly. It is poor practice to directly edit plugin files, because the edits are overwritten on plugin updates. If the plugin was written well using WordPress hooks, then we are in luck and can modify the functions. I was reading that in …

How to Edit a Variable/Function in a Plugin Using WordPress Hooks via functions.php ⚒ Read More »

Tunnel on road with forest on other side.

How to Use Query Parameters in Your WordPress PHP REST API Route/Endpoint ⚡️

When building a custom WordPress API endpoint to pull data from your WordPress site, you can pass query parameters into your URL or at the end of your slug to act as variables in your PHP API functions (in the format “?parameter-key=parameter-value”). (Query parameters may be referred to as arguments, or could be confused to …

How to Use Query Parameters in Your WordPress PHP REST API Route/Endpoint ⚡️ Read More »

Rabbit in field.

How to Backup WordPress Site Files With 10 Minute Download Time (Using Zip)

SUMMARY: If you zip the folder containing your WordPress files, and download the zip file instead of the folder, the download time will be reduced from several hours to 10 minutes (vs. using FTP to download the WP files). ? You can use either cPanel file manager or SSH This guide doesn’t cover backing up …

How to Backup WordPress Site Files With 10 Minute Download Time (Using Zip) Read More »

Bridge going into forest.

How to Assign Variable Values Using the Ternary (?) and Logical AND (&&) Operators in JavaScript

The ternary (?) and logical AND (&&) operators in JavaScript can be used in place of an if…else statement, and can give you cleaner code. Here is a preview of how we will use it: See the video I recorded for this here! ▶️ Let’s look at the full example. First, consider the below function …

How to Assign Variable Values Using the Ternary (?) and Logical AND (&&) Operators in JavaScript Read More »