pfeifferNet

Ingredients
in package

Class to define ingredients custom post type definition.

Adds custom post type to main query.

Tags
since
1.0.0
since
5.5.0

Inherit standard singleton class.

since
5.11.0

Deprecated global singleton.

Table of Contents

Constants

CPT_NAME  = 'pfic_ingredient'
The name of the chapter taxonomy.

Properties

$instances  : array<string|int, object>
The array of instances of this class and sub-classes.

Methods

deregister()  : void
Deregister the post type
get_instance()  : object
Creates and/or returns the instance of this class.
get_name()  : string
Return custom post type name.
register()  : void
Define and register the ingredient custom post type.
__construct()  : void
Initialise the class and set its properties.

Constants

CPT_NAME

The name of the chapter taxonomy.

protected string CPT_NAME = 'pfic_ingredient'
Tags
since
5.3.0

Properties

$instances

The array of instances of this class and sub-classes.

protected static array<string|int, object> $instances = array()
Tags
since
5.11.0

Methods

get_instance()

Creates and/or returns the instance of this class.

public static get_instance() : object
Tags
since
5.11.0
Return values
object

The instance of this class.

__construct()

Initialise the class and set its properties.

protected __construct() : void
Tags
since
5.11.0

        
On this page

Search results