Blog

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

Add Product to Cart Programmatically

Usually when I work with any WordPress or WooCommerce projects, if I face with something new during the development process, I usually try to share what I learnt immediately on my blog, here. But not always I did that. In 2014 I began my work with the awesome and super complicated project with WooCommerce, WooCommerce Memberships and WooCommerce Subscriptions. Let me share with you a piece of that work.

In this tutorial I am going to show you a different ways of adding a product to WooCommerce cart via code.

And by the way, if you were looking how to add product to an order, you need a completely different tutorial – here it is.

Remove Posts in WordPress Dashboard with AJAX

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

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

I was quite suprised when I tested his email something+something@anything.com and found out that the default WordPress function is_email() returns false for this type of emails. In other words, is_email() function isn’t able to validate email addresses with a “+” in it but those are valid email addresses as well as per RFC standard 5322. By the way, if you look at the official documentation of is_email() function, there also said that it is not RFC compliant.

How to Fix “Updating Failed” in Gutenberg

Add or Change Content of Default Product Tabs

In this tutorial we are going to talk about WooCommerce product tabs, the default ones – “Description”, “Additional information” and “Reviews” tab. First of all I will show you how to add default content into them and then we will also add something custom as well.