WP_Post_Type::register_taxonomies
Registers the taxonomies for the post type.
Метод класса: WP_Post_Type{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WP_Post_Type = new WP_Post_Type(); $WP_Post_Type->register_taxonomies();
Список изменений
| С версии 4.6.0 | Введена. |
Код WP_Post_Type::register_taxonomies() WP Post Type::register taxonomies WP 7.0.3
public function register_taxonomies() {
foreach ( $this->taxonomies as $taxonomy ) {
register_taxonomy_for_object_type( $taxonomy, $this->name );
}
}