PHP function that converts timestamp into the time ago format (Italian language)
Include function.php or copy and paste the content into your project. Simply call the get_timeago() function. It requires one parameter: a Unix timestamp variable.
get_timeago(strtotime('2019-10-07')) returns 'pubblicato circa 20 giorni fa'