Свойство | Тип | Описание | |
---|---|---|---|
$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: |
Свойство | Тип | Описание | |
---|---|---|---|
$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. |
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. |
public register_taxonomy ( ) : null | ||
Результат | null |
public rewrite_testing_tests ( array $tests ) : array | ||
$tests | array | The existing rewrite rule tests. |
Результат | array | Updated rewrite rule tests. |
protected array $defaults | ||
Результат | array |