A function which retrieves content created time.

Purpose of this function is for the get.content.created.time filter.


  • Full name: get_content_created_time
  • Defined in: cms/core/Shared/Helpers/content.php

Parameters

Parameter Type Description
$contentId string Content id.
$format string Format to use for retrieving the time the content was created.
Accepts 'G', 'U', or php date format value specified
in 'date_format' option. Default 'U'.
$gmt bool Whether to use GMT. Default false.
$translate bool Whether the returned string should be translated. Default false.

Return Value

string

Formatted content created time string or Unix timestamp if $format is 'U' or 'G'. '' on failure.