Ingredients
in package
Class to define ingredients custom post type definition.
Adds custom post type to main query.
Tags
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
Properties
$instances
The array of instances of this class and sub-classes.
protected
static array<string|int, object>
$instances
= array()
Tags
Methods
deregister()
Deregister the post type
public
deregister() : void
Tags
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_name()
Return custom post type name.
public
get_name() : string
Tags
Return values
stringregister()
Define and register the ingredient custom post type.
public
static register() : void
Tags
__construct()
Initialise the class and set its properties.
protected
__construct() : void