How to Extend the List of Allowed Domains for wp_safe_redirect()

By default function wp_safe_redirect() allows to redirect only to the same domain which is presented as a home_url(). But in some cases you may want to extend it with let’s say subdomains and in this tutorial I will provide a ready snippet for that.

Add Product to Cart Programmatically

In this tutorial I will show you some simple PHP code examples which allow to add a product or a product variation to the cart in WooCommerce.

Remove Posts in WordPress Dashboard with AJAX

If you ever tried to remove WordPress comments in admin dashboard, you know that comments are moved to trash asynchronously. In this tutorial I will show how to do the same for custom post types.

How to Properly Include CSS and JS in your WordPress Themes and Plugins

This in-depth tutorial contains all my experience and best practices which may be helpful when you add some CSS or JavaScript code to your WordPress website.

RFC 5322 Support for is_email() function. Quick fix.

Today I received a email from my client where he mentioned that he is unable to login to the members area on my website with his email which contains “+” symbol.

How to Fix “Updating Failed” in Gutenberg

I already have a couple tips on my blog about “fixing Gutenberg”, for example I already mentioned that you have to double check that REST API is not disabled and in this guide I show what to do if Inserter Dialog is not available. But recently I faced with another issue.

Add or Change Content of Default Product Tabs

It is the last tutorial about WooCommerce product tabs, let me show how to change the content of the default product tabs or add something custom there.

My Experience as a Lead Organizer of WordCamp Saint Petersburg

At the beginning of 2018 I visited WordCamp Oslo and I was so much inspired by it, so my dream was to organize something similar in the city I love, Saint Petersburg.

Create a Custom Product Tab

In this tutorial you will learn not only how to create a custom tab on WooCommerce single product pages but also how to display it only for specific product types or products.

Change Product Tabs Order

Let’s figure out how to set your custom order for product tabs on single product pages and how to select a tab you want to be opened by default.

Change Product Tab Titles and Headings

Why do you think I decided to create a separate tutorial about renaming product tabs? 🤔 Because everything is not as simple as it seems, especially when we are talking about the Reviews tab.

How to Remove Product Tabs

In this tutorial I will show you different ways how you can hide any of default tabs on single product pages. Without plugins and CSS of course 👍

Remove “Update Cart” button and Do It Automatically on Quantity Change

It is just a tiny thing but sometimes it can confuse your website customers. Because by default when you change the product quantity in WooCommerce cart, the cart won’t be updated until you smash the Update cart button.

Billing and Shipping Address Fields

WooCommerce has 4 different filter hooks which allow to manage the address fields, let’s figure out when and how to use each of them.