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.
---
activate.php | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/activate.php b/activate.php
index 65ec6a9..af0f7a1 100644
--- a/activate.php
+++ b/activate.php
@@ -30,7 +30,6 @@
do_action(BASE.'activation');
error_log('Action done!');
error_log('Checking custom tables...');
- Queue::defineTables();
CustomTable::ensureTables();
error_log('Dashboard is setup: '.print_r(JVB()->dashboard(), true));
@@ -65,7 +64,7 @@
$role = get_role('administrator');
$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) {
error_log('Adding administrative roles to '.$slug);
$plural = $roleManager->getContentPlural($slug);
$capabilities = [
@@ -106,7 +105,7 @@
$roleManager = new RoleManager();
$users = get_users(['role' => 'administrator']);
- foreach (array_merge(Registrar::getRegistered('post'), Registrar::getFeatured('is_content', 'term')) as $slug) {
+ foreach (array_merge(Registrar::getRegistered('post'), Registrar::withFeature('is_content', 'term')) as $slug) {
foreach ($users as $user) {
// These methods should check if post type exists before adding caps
--
Gitblit v1.10.0