Entries Written By Faruk Garic
Overwrite the Affiliate Cookie in Ultimate Affiliate Pro
In Ultimate Affiliate Pro, when a user clicks on an affiliate link, a cookie (such as uap_referral) is set to track the affiliate. If the same user clicks on a different affiliate link later, you might want to overwrite the existing cookie to credit the new affiliate. Here’s how you can handle this scenario: Steps …
Automating WooCommerce: How to Auto-Draft Expired Event Products with a WordPress Cron Job
To automatically mark products as “draft” when the event date stored in the date post meta has passed, you can create a scheduled task (cron job) that runs regularly and checks if the event date has passed. If the date has passed, the product will be marked as a draft. Here’s a step-by-step solution: Step …
Excluding WooCommerce products from categories via the REST API
In short, this code helps exclude products from specific WooCommerce categories when using the REST API. It works by: This way, products from the specified categories won’t appear in REST API responses, improving customization and control over your WooCommerce store’s data.
How to Add WooCommerce Custom Field to a Product page
When you need to add required input field to the product page of your WooCommerce shop and this field needs to be stored in order as an attribute and sent to the customer in confirmation email, you’ll need to add custom code to your theme’s functions.php file. Here is the step-by-step process and the necessary …
Refresh Custom fragments in WooCommerce
WooCommerce excels in e-commerce functionality, including a handy feature called “fragments.” These fragments are pieces of HTML content that update dynamically on the front end without a full page refresh. They’re crucial for enhancing the user experience and maintaining a seamless feel throughout your online store. While WooCommerce offers excellent built-in fragment handling, there are …
Fix WordPress File Permissions On Ubuntu
Fixing WordPress file permissions on Ubuntu sometimes can be real pain. Here is my step by step guide how to do it properly.
How to use VS Code Server on SpinupWP
WordPress development can be a tedious and time-consuming process, often requiring frequent server-side interactions and configuration. To streamline this workflow, many developers turn to cloud-based solutions like SpinupWP, which offer quick and easy WordPress server provisioning and management. However, working remotely with a cloud-based server can still pose challenges, particularly when it comes to accessing …
15 Advanced Regex: Mastering Google Search Console
In the labyrinth of data that is Google Search Console, we’ve been on a treasure hunt. Piece by piece, we’ve unearthed the secrets to optimizing our website’s visibility and decoding the stories behind clicks and queries. With each post, we’ve delved deeper, moving from the realm of basic search terms to the more enigmatic world …
How to Delete Theme in WordPress
You cannot delete an active theme. If you’re trying to delete the currently active theme on your site, you’ll need to activate a different theme first. Before deleting a theme, creating a backup of your site is a good idea, just in case something goes wrong.
Effortlessly Master Pip: A Joyful Guide for Windows (10/11), macOS, and Ubuntu
pip is the default package installer for Python. It lets you easily install and manage Python packages (libraries and modules) from the Python Package Index (PyPI) and other repositories. pip stands for “Pip Installs Packages” or “Pip Installs Python.” Here are some common commands and ways to use pip: Install a package: Replace package_name with …
eventAttendanceMode: New Structured data Properties For Events
Many of us use Google search to check events we want to attend nowadays. In order to update how our events show in Google search results, we can use Structured data / schema.org markup Structured data property called eventAttendanceMode is a new property to the Event structured data type that enables event organizers to communicate …
Treat the CloudFront domain as a first-party domain for your website.
To treat the CloudFront domain as a first-party domain for your website, you’ll need to configure CloudFront to serve content using a custom domain (CNAME) that is a subdomain of your main domain. Here’s a step-by-step guide: Once these steps are completed, your custom subdomain will be a first-party domain for your website’s resources. It …