Omar Shishani

Silhouette of girl on purple and red sunset.

What are the Different Parts of HTML Text Input Elements For (in React and normal HTML)?

The HTML “text” input name For a text input, the name is part of the data sent to the server when the form is submitted. The name is paired with the input’s value, and these are sent to the server in the form name=Chris (if your input value was “Chris”). value The value of an …

What are the Different Parts of HTML Text Input Elements For (in React and normal HTML)? Read More »

How to Add Functions (including useState) to TypeScript Interfaces

I was having trouble finding out how to add functions to TypeScript interfaces. When I finally found out how I decided to write this. I’ll show the format immediatly below: We can see that to create a type for a function, we need to use the format functionName(nameForArgument: [argument type]): [type] . We need to …

How to Add Functions (including useState) to TypeScript Interfaces Read More »

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 »