For some time now, I’ve been thinking that I needed to get a php linter in my workflow. This little addition will decrease debugging time, letting me know instantly if there’s some kind of syntax mistake, and also with WordPress standards active will instruct me to follow all the coding standards. After a little chat with […]
Some background For a couple of months, I’m using WordPress as an application framework and this requires some additional validations on post meta fields, one of those validations is the need to have unique meta values, for some post types. For instance a phone number on a “client record” each client has one number and if […]
A fast and reliable way to change WooCommerce behaviours While working on WooCommerce websites, I’ve found that I was using (most of the times) 4 simple functions that allowed me to have a superior control on the created e-commerce solution. In this post you’ll find functions for: Add WooCommerce CSS classes to any template you […]
This post has an updated version on WooCommerce and WooCommerce Subscriptions – Automatically set order status to completed Using Filter: woocommerce_payment_complete_order_status Sometimes when you’re developing an e-commerce website you’ll need to automatically check the payment status and mark an order as completed. This usually implies that you’re selling a “virtual good” but not always, I’ve been developing a […]