Clanbite General Since 1.6.3

apply_filters( 'clanbite_human_time_ago', string $text, int $timestamp, int $now )

Filters relative time wording shown by Clanbite and its extensions.

Filter PHP

Parameters

$text (string)

Relative text such as "5 minutes ago".

$timestamp (int)

Unix timestamp of the moment.

$now (int)

Unix timestamp it was measured from.

Example

add_filter( 'clanbite_human_time_ago', function ( $text, $timestamp, $now ) {
	// Change $text here.
	return $text;
}, 10, 3 );

Defined in inc/functions-time.php

Changelog

VersionDescription
1.6.3Introduced.