Blog

Page 144 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for WooCommerce hook for "after payment complete" actions

WooCommerce hook for "after payment complete" actions

Published on September 2, 2023

# šŸ’” Easy Solution for WooCommerce "after payment complete" Actions So, you want to generate a license key for your plugin in WooCommerce as soon as the payment is complete? šŸ¤” You've come to the right place! In this guide, we'll explore the common issues

Cover Image for Static vs class functions/variables in Swift classes?
classfunctionstaticvariables

Static vs class functions/variables in Swift classes?

Published on September 2, 2023

## Static vs Class Functions/Variables in Swift Classes: What's the Difference and When to Use Them? When working with Swift classes, you might come across two types of functions and variables: static and class. Although they may seem similar, there are s

Cover Image for Select user having qualifying data on multiple rows in the wp_usermeta table
group-bymysql

Select user having qualifying data on multiple rows in the wp_usermeta table

Published on September 2, 2023

šŸ‘‹ Hey there! Are you struggling to find the user_id that has qualifying data on multiple rows in the wp_usermeta table? šŸ¤” Don't worry, I'm here to help you out! First, let's understand the problem. You mentioned that you have a MySQL query, but it's no

Cover Image for How do I get a reference to the AppDelegate in Swift?

How do I get a reference to the AppDelegate in Swift?

Published on September 2, 2023

# šŸ“± How to Get a Reference to AppDelegate in Swift? So, you want to get a reference to the `AppDelegate` in Swift, huh? No worries! I got you covered. šŸ˜Ž In this guide, I will show you how to easily get that reference and access the managed object contex

Cover Image for How does String substring work in Swift
rangestringsubstring

How does String substring work in Swift

Published on September 2, 2023

# How does String substring work in Swift? šŸ¤” If you're familiar with Swift programming language and have been updating your code to Swift 3, you might have encountered some confusion when it comes to working with substrings. Specifically, the introductio

Cover Image for What does "Fatal error: Unexpectedly found nil while unwrapping an Optional value" mean?
error-handlingexception

What does "Fatal error: Unexpectedly found nil while unwrapping an Optional value" mean?

Published on September 2, 2023

# Understanding the "Fatal error: Unexpectedly found nil while unwrapping an Optional value" Error šŸš«šŸ” So, you're here because you encountered the dreaded "Fatal error: Unexpectedly found nil while unwrapping an Optional value" error in your Swift progra

Cover Image for Get nth character of a string in Swift
collectionsstring

Get nth character of a string in Swift

Published on September 2, 2023

# Get nth character of a string in Swift: A Complete Guide Are you trying to get the nth character of a string in Swift, but encountering an error when using the bracket accessor? Don't worry, we've got you covered! In this blog post, we'll walk you throu

Cover Image for The use of Swift 3 @objc inference in Swift 4 mode is deprecated?

The use of Swift 3 @objc inference in Swift 4 mode is deprecated?

Published on September 2, 2023

šŸ“ **Blog Post: Understanding and Fixing the Deprecated Swift 3 @objc Inference in Swift 4 Mode** šŸš€ Are you using Xcode 9 Beta and came across this warning message: "The use of Swift 3 @objc inference in Swift 4 mode is deprecated?" Don't worry, you're n

Cover Image for Why create "Implicitly Unwrapped Optionals", since that implies you know there"s a value?

Why create "Implicitly Unwrapped Optionals", since that implies you know there"s a value?

Published on September 2, 2023

# Why create "Implicitly Unwrapped Optionals" when you know there's a value? šŸ¤” Have you ever come across a situation where you knew a variable or constant would always have a value, but you still had to make it an optional? It might seem counterintuitive

Cover Image for woocommerce get_woocommerce_currency_symbol()

woocommerce get_woocommerce_currency_symbol()

Published on September 2, 2023

# How to Display Woocommerce Currency Symbol Outside the Loop in WordPress šŸ›’šŸ’µšŸ’» Are you developing an extension for the popular Woocommerce WordPress plugin? Do you want to display the currency symbol outside of the loop in a custom function? If you've