Get Difference Between Two Times
The following function will help you get the difference from two dates in PHP. You need to specify the 2 dates when you call...
Check If A Date Is In The Past Or In The Future in PHP
The following code will help you to check if a date in the future or in the past. Where are this required? A lot...
Reduce white borders on images with Image Magick
Today i had a very big problem as i had to crop an image to get all the white border out. I...
How to programmatically create a Woocommerce coupon
Today i had to create a system that would create different coupons for a site in Woocommerce.
The idea...
Securing a site POST, GET, REQUEST on PHP
I had a major security issue today. I did some tests on a project and found out that the an code "><script>alert(1)</script>...
Get all WooCommerce product variation id
Hi. I what to share with you a small code that helped me to get all product variantion ID from Woocommerce.
Show A List Of Days Between Two Dates in PHP
The following function will show you a list of days between two dates. The following code will require to setup a start date on variable...
How to Add WooCommerce Custom Text Field for all Variations
I need it to add a custom text field for every variations in WooCommerce products. I figure out a code that helped...
Convert minutes to hours and minutes or seconds to minutes and seconds
If you wish to convert minutes to hours and minutes display or convert minutes to minutes and second display here is a super useful...
Twitter Style “Time Ago” Dates on PHP
The following function will show the time like Twitter with that info ago, like 9 hours ago:
function _agotime($tm,$rcs = 0) {
$cur_tm...