How to get a WooCommerce product’s link, title and data from the product slug

When building out a WooCommerce store, there are often times where you have the slug for a WooCommerce product in your code, and you need to fetch the actual product data such as the permalink, the title or even the ID of the product. Fetching a product from a slug is not as straight forward …

How to get a WooCommerce product’s link, title and data from the product slug Read More »

Set a margin in PhpStorm to wrap DocBlock comments

Since we do a lot of WordPress development work and like to keep our code well documented, we follow the WordPress guide lines on how to write our documentation using PHP DocBlock. The WordPress guidelines specify that… DocBlock text should wrap to the next line after 80 characters of text. If the DocBlock itself is indented on the …

Set a margin in PhpStorm to wrap DocBlock comments Read More »