From ba1e1ccf869b818f7a7a897264dfea05563a7796 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 07 Jun 2026 20:10:20 +0000
Subject: [PATCH] =Major overhaul of Integrations. Playing around with adding fields to post types through Registrar from an integrations' class file.

---
 inc/managers/RoleManager.php |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/inc/managers/RoleManager.php b/inc/managers/RoleManager.php
index b275f12..a22b585 100644
--- a/inc/managers/RoleManager.php
+++ b/inc/managers/RoleManager.php
@@ -24,7 +24,7 @@
 		   return strtolower(str_replace(' ', '_', $registrar->getPlural()??$registrar->getSingular().'s'));
 	   },array_merge(
 		   Registrar::getRegistered('post'),
-		   Registrar::getFeatured('is_content', 'term')
+		   Registrar::withFeature('is_content', 'term')
 	   ));
 	   add_action('set_user_role', [$this, 'updateRoles'], 10, 3);
 
@@ -470,7 +470,7 @@
 		protected function addAdminCaps():void
 		{
 			$users = get_users(['role' => 'administrator']);
-			foreach (array_merge(Registrar::getRegistered('post'), Registrar::getFeatured('is_content')) as $slug) {
+			foreach (array_merge(Registrar::getRegistered('post'), Registrar::withFeature('is_content')) as $slug) {
 				$this->grantRoleCapabilities('administrator', $slug);
 				$this->grantRoleOthersCapabilities('administrator', $slug);
 
@@ -785,7 +785,7 @@
 		if ($ownable === null) {
 			$ownable = array_map(function ($instance) {
 				return $instance->slug;
-			}, Registrar::getFeatured('is_ownable', 'term'));
+			}, Registrar::withFeature('is_ownable', 'term'));
 		}
 
 		return $ownable;
@@ -803,7 +803,7 @@
 		if ($invitable === null) {
 			$invitable = array_map(function ($instance) {
 				return $instance->slug;
-			}, Registrar::getFeatured('invitable', 'term'));
+			}, Registrar::withFeature('invitable', 'term'));
 		}
 
 		return $invitable;

--
Gitblit v1.10.0