PHP Class Extended_Taxonomy, extended-taxos

Show file Open project: johnbillion/extended-taxos

Public Properties

Property Type Description
$args
$object_type
$tax_plural
$tax_plural_low
$tax_singular
$tax_singular_low
$tax_slug
$taxonomy Some other member variables you don't need to worry about:

Protected Properties

Property Type Description
$defaults array Several of these differ from the defaults in WordPress' register_taxonomy() function.

Public Methods

Method Description
__construct ( string $taxonomy, array | string $object_type, array $args = [], array $names = [] ) Class constructor.
register_taxonomy ( ) : null Registers our taxonomy.
rewrite_testing_tests ( array $tests ) : array Add our rewrite tests to the Rewrite Rule Testing tests array.

Method Details

__construct() public method

Class constructor.
See also: register_extended_taxonomy()
public __construct ( string $taxonomy, array | string $object_type, array $args = [], array $names = [] )
$taxonomy string The taxonomy name.
$object_type array | string Name(s) of the object type(s) for the taxonomy.
$args array Optional. The taxonomy arguments.
$names array Optional. An associative array of the plural, singular, and slug names.

register_taxonomy() public method

Registers our taxonomy.
public register_taxonomy ( ) : null
return null

rewrite_testing_tests() public method

Add our rewrite tests to the Rewrite Rule Testing tests array.
public rewrite_testing_tests ( array $tests ) : array
$tests array The existing rewrite rule tests.
return array Updated rewrite rule tests.

Property Details

$args public property

public $args

$defaults protected property

Several of these differ from the defaults in WordPress' register_taxonomy() function.
protected array $defaults
return array

$object_type public property

public $object_type

$tax_plural public property

public $tax_plural

$tax_plural_low public property

public $tax_plural_low

$tax_singular public property

public $tax_singular

$tax_singular_low public property

public $tax_singular_low

$tax_slug public property

public $tax_slug

$taxonomy public property

Some other member variables you don't need to worry about:
public $taxonomy