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.
I was quite suprised when I tested his email
firstname.lastname@example.org 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.
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.