WP_Taxonomy::__construct()
Constructor.
See the register_taxonomy() function for accepted arguments for $args.
Метод класса: WP_Taxonomy{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WP_Taxonomy = new WP_Taxonomy(); $WP_Taxonomy->__construct( $taxonomy, $object_type, $args );
- $taxonomy(строка) (обязательный)
- Taxonomy key, must not exceed 32 characters.
- $object_type(массив|строка) (обязательный)
- Name of the object type for the taxonomy object.
- $args(массив|строка)
- Array or query string of arguments for registering a taxonomy. See register_taxonomy() for information on accepted arguments.
По умолчанию: empty array
Список изменений
С версии 4.7.0 | Введена. |
Код WP_Taxonomy::__construct() WP Taxonomy:: construct WP 6.5.2
public function __construct( $taxonomy, $object_type, $args = array() ) { $this->name = $taxonomy; $this->set_props( $object_type, $args ); }