Use WooCommerce hook woocommerce_coupon_is_valid to check if coupon is valid. Example shows how to make sure certain coupons are valid for logged in users only. Same example can be use to extend validation, for example …
Continue ReadingBrowser dark mode specific favicon
Run this little snippet on document ready, it enables you to define and switch different favicon for users who are visiting your site in browser/os dark mode. Don’t forget to update image icon path.
Continue ReadingChange Gravity Forms submit input to button element
There is a filter for that, we all assumed. Read official documentation gform_submit_button filter.
Continue ReadingMaking Youtube iframe API videos work in carousel / tab
Well, I just spent decent amount of time trying to make Youtube video work inside a carousel. On ‘slide in’ play video if there is one, and pause all others. Did seam like a routine …
Continue ReadingHow to remove ‘Category list’ from Quick edit in WordPress admin
This snippet removes category checkbox list from quick edit in WordPress. Third param $view can be added if you want to remove the view for a specific post type only.
Continue Reading