Publication
in package
Post and page publication data.
Tags
Table of Contents
Constants
- HISTORY_CONTAINER = 'publication-history.php'
- Publication history partial.
- REVISION_GRACE_PERIOD = WEEK_IN_SECONDS
- The grace period to allow before classifying a revision.
Properties
- $history_container : string
- The fully qualified path to the publication history content partial.
- $instances : array<string|int, object>
- The array of instances of this class and sub-classes.
Methods
- get_instance() : object
- Creates and/or returns the instance of this class.
- get_the_data() : string
- Return the rendered published and (maybe) updated dates for the current post.
- render() : void
- Render published and updated dates for the current post.
- __construct() : void
- Initialise the class and set its properties.
Constants
HISTORY_CONTAINER
Publication history partial.
protected
string
HISTORY_CONTAINER
= 'publication-history.php'
Tags
REVISION_GRACE_PERIOD
The grace period to allow before classifying a revision.
protected
int
REVISION_GRACE_PERIOD
= WEEK_IN_SECONDS
Tags
Properties
$history_container
The fully qualified path to the publication history content partial.
protected
string
$history_container
= ''
Tags
$instances
The array of instances of this class and sub-classes.
protected
static array<string|int, object>
$instances
= array()
Tags
Methods
get_instance()
Creates and/or returns the instance of this class.
public
static get_instance() : object
Tags
Return values
object —The instance of this class.
get_the_data()
Return the rendered published and (maybe) updated dates for the current post.
public
get_the_data() : string
Tags
Return values
string —The publication data.
render()
Render published and updated dates for the current post.
public
render() : void
Tags
__construct()
Initialise the class and set its properties.
protected
__construct() : void