Post_Series
in package
Displays list of post summaries in the series on relevant posts.
Tags
Table of Contents
Constants
- ITEM_CONTAINER = 'series-item.php'
- Series item container partial.
- SUMMARY_CONTAINER = 'series-summary.php'
- Series summary container partial.
Properties
- $instances : array<string|int, object>
- The array of instances of this class and sub-classes.
- $item_container : string
- Series summary container partial.
- $summary_container : string
- Series summary container partial.
- $taxonomy_definition : Post_Series
- The instance of the Post_Series taxonomy definition class.
- $term : Term
- The instance of the Term class.
Methods
- get_instance() : object
- Creates and/or returns the instance of this class.
- render_summary() : void
- Render summary of series and links to the entries.
- __construct() : void
- Initialise the class and set its properties.
Constants
ITEM_CONTAINER
Series item container partial.
protected
string
ITEM_CONTAINER
= 'series-item.php'
Tags
SUMMARY_CONTAINER
Series summary container partial.
protected
string
SUMMARY_CONTAINER
= 'series-summary.php'
Tags
Properties
$instances
The array of instances of this class and sub-classes.
protected
static array<string|int, object>
$instances
= array()
Tags
$item_container
Series summary container partial.
protected
string
$item_container
Tags
$summary_container
Series summary container partial.
protected
string
$summary_container
Tags
$taxonomy_definition
The instance of the Post_Series taxonomy definition class.
protected
Post_Series
$taxonomy_definition
Tags
$term
The instance of the Term class.
protected
Term
$term
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.
render_summary()
Render summary of series and links to the entries.
public
render_summary(array<string|int, mixed> $args) : void
Parameters
- $args : array<string|int, mixed>
-
{ Array of series arguments. @type int $series_id The id of the series taxonomy term. }
Tags
__construct()
Initialise the class and set its properties.
protected
__construct() : void