Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Henry Cullen

Time Difference

Hi Guys

I have created a column showing the time difference between the creation date and todays date of a woo commerce order.

This is showing great, but I’d like to do something when it reaches more than 6 days old, such as add a CSS class for coloured text or something similar.

Any ideas on how I could achive this in a nice lean way?

2 years, 4 months ago

The only way to do that is by using the following hook:


You could retrieve the raw value and make the difference calculation yourself to check for a specific condition.
You can wrap the value inside a span and give it an inline style to change the column as we did in the second example on the filters documentation page.

2 years, 4 months ago

You must be logged in to reply to this topic.