From 0afb2c0046b55c123eafb4ab9ee77efa68d12463 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sat, 06 Jun 2026 17:15:31 +0000
Subject: [PATCH] =Starting the Favourites.js setup, converting previous Northeh stuff to new Registrar, fixing up Square.php integration to match
---
inc/registrar/Terms.php | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/inc/registrar/Terms.php b/inc/registrar/Terms.php
index e1b875e..8fd2bec 100644
--- a/inc/registrar/Terms.php
+++ b/inc/registrar/Terms.php
@@ -59,7 +59,7 @@
* Whether to include the taxonomy in the REST API. Set this to true for the taxonomy to be available in the block editor.
* @var bool
*/
- public bool $show_in_rest;
+ public bool $show_in_rest = true;
/**
* To change the base url of REST API route. Default is $taxonomy.
* @var string
@@ -91,7 +91,7 @@
* Whether to display a column for the taxonomy on its post type listing screens. Default false
* @var bool
*/
- public bool $show_admin_column;
+ public bool $show_admin_column = true;
/**
* Provide a callback function for the meta box display.
* If not set, post_categories_meta_box() is used for hierarchical taxonomies, and post_tags_meta_box() is used for non-hierarchical.
@@ -113,6 +113,14 @@
* @var array
*/
public array $capabilities;
+
+
+ /**
+ * The URL to the icon to be used for this menu. Pass a base64-encoded SVG using a data URI, which will be colored to match the color scheme — this should begin with 'data:image/svg+xml;base64,'. Pass the name of a Dashicons helper class to use a font icon, e.g.
+ * 'dashicons-chart-pie'. Pass 'none' to leave div.wp-menu-image empty so an icon can be added via CSS. Defaults to use the posts icon.
+ * @var string
+ */
+ public string $menu_icon;
/**
* Triggers the handling of rewrites for this taxonomy. Default true, using $taxonomy as slug. To prevent rewrite, set to false. To specify rewrite rules, an array can be passed with any of these keys:
* slug {string} - Customize the permastruct slug. Default $taxonomy key.
--
Gitblit v1.10.0