Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter nrenee

    (@nrenee)

    OOps just realized what I said was confusing. I would like to change how long Just now appears on the page before switching to hours.

    Plugin Author Vegard Skjefstad

    (@vskjefst)

    You have to edit the plugin’s code in the wp_days_ago-core.php file to achieve this. The lines referred to below assumes you’re using the most recent version of the plugin, version 3.2.

    If you want “Just now” to be displayed for the first hour, replace lines 150-159 with the following code:

    $foundSomething = true;
    $singular = true;
    $s .= __("Just now", "wp-days-ago"); // JUST NOW

    Keep in mind that your changes will be overwritten the next time the plugin is updated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Altering Just Now’ is closed to new replies.