pfeifferNet

Tax_Meta extends Tax_Meta
in package

Taxonomy extended meta data functionality.

Create or extend admin screens to add an excerpt, preferred display sequence and taxonomy image.

Tags
since
1.0.0
since
5.8.0

Uses refactored media selector.

since
5.9.0

Inherit pNet Tax_Meta class.

uses
Tax_Meta

Table of Contents

Constants

CREATE_META_CONTAINER  = 'create-tax-meta.php'
Create screen partial.
EDIT_META_CONTAINER  = 'edit-tax-meta.php'
Edit screen partial.
MEDIA_FIELD_ID  = 'pnet-image-id'
The media selector field id attribute.
MEDIA_FIELD_NAME  = 'pnet_image_id'
The media selector field name attribute.
TAXONOMIES  = array('pgal_album')
The taxonomies to apply extended meta data.

Properties

$create_meta_container  : string
The fully qualified path to create screen partial.
$edit_meta_container  : string
The fully qualified path to edit screen partial.
$instances  : array<string|int, object>
The array of instances of this class and sub-classes.
$media_selector  : Media_Selector
The instance of the Media_Selector class.

Methods

get_instance()  : object
Creates and/or returns the instance of this class.
get_taxonomies()  : array<string|int, string>
Return the array of target taxonomies.
render_create_fields()  : void
Render the extra fields on the create screen.
render_edit_fields()  : void
Render the fields on the edit screen.
save()  : void
Save the data.
__construct()  : void
Initialise the class.

Constants

CREATE_META_CONTAINER

Create screen partial.

protected string CREATE_META_CONTAINER = 'create-tax-meta.php'
Tags
since
1.0.0

EDIT_META_CONTAINER

Edit screen partial.

protected string EDIT_META_CONTAINER = 'edit-tax-meta.php'
Tags
since
1.0.0

MEDIA_FIELD_ID

The media selector field id attribute.

protected string MEDIA_FIELD_ID = 'pnet-image-id'
Tags
since
5.8.0

MEDIA_FIELD_NAME

The media selector field name attribute.

protected string MEDIA_FIELD_NAME = 'pnet_image_id'
Tags
since
5.8.0

TAXONOMIES

The taxonomies to apply extended meta data.

protected array<string|int, string> TAXONOMIES = array('pgal_album')
Tags
since
5.9.0

Properties

$create_meta_container

The fully qualified path to create screen partial.

protected string $create_meta_container = ''
Tags
since
5.3.0

$edit_meta_container

The fully qualified path to edit screen partial.

protected string $edit_meta_container = ''
Tags
since
5.3.0

$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.

get_taxonomies()

Return the array of target taxonomies.

public get_taxonomies() : array<string|int, string>
  • This is used to build the admin hooks in the core plugin class.
Tags
since
5.9.0
Return values
array<string|int, string>

save()

Save the data.

public save(int $term_id) : void
Parameters
$term_id : int

The taxonomy term id.

Tags
since
1.0.0
since
5.13.0

Add preferred display sequence.

since
5.13.0

Improve data sanitisation.

uses
HTTP_Handler::get_post_vars()

        
On this page

Search results