PHP Класс Extended_Taxonomy, extended-taxos

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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)

Свойство Тип Описание
$defaults array Several of these differ from the defaults in WordPress' register_taxonomy() function.

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

Class constructor.
См. также: 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() публичный Метод

Registers our taxonomy.
public register_taxonomy ( ) : null
Результат null

rewrite_testing_tests() публичный Метод

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.
Результат array Updated rewrite rule tests.

Описание свойств

$args публичное свойство

public $args

$defaults защищенное свойство

Several of these differ from the defaults in WordPress' register_taxonomy() function.
protected array $defaults
Результат array

$object_type публичное свойство

public $object_type

$tax_plural публичное свойство

public $tax_plural

$tax_plural_low публичное свойство

public $tax_plural_low

$tax_singular публичное свойство

public $tax_singular

$tax_singular_low публичное свойство

public $tax_singular_low

$tax_slug публичное свойство

public $tax_slug

$taxonomy публичное свойство

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