Deprecated
This method has been deprecated.
AnsPress_Hooks::human_time_diff( string $since )
Description #
Make human_time_diff strings translatable.
Parameters #
- $sincestring (Required) Time since.
Source #
File: includes/hooks.php
public static function human_time_diff( $since ) { $replace = array( 'min' => __( 'minute', 'anspress-question-answer' ), 'mins' => __( 'minutes', 'anspress-question-answer' ), 'hour' => __( 'hour', 'anspress-question-answer' ), 'hours' => __( 'hours', 'anspress-question-answer' ), 'day' => __( 'day', 'anspress-question-answer' ), 'days' => __( 'days', 'anspress-question-answer' ), 'week' => __( 'week', 'anspress-question-answer' ), 'weeks' => __( 'weeks', 'anspress-question-answer' ), 'year' => __( 'year', 'anspress-question-answer' ), 'years' => __( 'years', 'anspress-question-answer' ), ); return strtr( $since, $replace ); }
Expand full source code Collapse full source code View on GitHub: includes/hooks.php:877
Add your comment