I'm using the function echo time_ago() that displays the time like this:
5 days ago what's the best way to change it to 5d ago ?
My research led me to human_time_diff() function located in "formatting.php" So I have tried directly editing the function located at /wp-includes/formatting.php but when I change "hours" to "h" and so on... it goes crazy and gives me errors. I know modifying the core isn't the best way, so any ideas? Thank you.