From 3ae332ee083ce433d3083e527879c04edcc10c32 Mon Sep 17 00:00:00 2001 From: YvetteNikolov Date: Thu, 15 Feb 2024 11:39:08 +0100 Subject: [PATCH] (chore): add show_in_rest arg to all taxonomies --- CHANGELOG.md | 6 ++++++ config/taxonomies.php | 11 ++++++----- pdc-base.php | 2 +- src/Base/Foundation/Plugin.php | 4 ++-- 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c76aac..0eb65a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # CHANGELOG +## Version [3.11.1] (2024-02-19) + +### Feat + +- Add show_in_rest arg to all taxonomies. + ## Version [3.11] (2024-01-23) ### Fix diff --git a/config/taxonomies.php b/config/taxonomies.php index ea4c705..a7ae9b5 100644 --- a/config/taxonomies.php +++ b/config/taxonomies.php @@ -27,6 +27,7 @@ 'back_to_items' => __('← Back to tags', 'pdc-base'), ], 'meta_box' => 'simple', + 'show_in_rest' => true, ], 'names' => [ 'singular' => __('Audience', 'pdc-base'), @@ -38,7 +39,7 @@ 'object_types' => ['pdc-item'], 'args' => [ 'meta_box' => 'simple', - 'show_in_rest' => false, + 'show_in_rest' => true, ], 'names' => [ 'singular' => __('Type', 'pdc-base'), @@ -50,7 +51,7 @@ 'object_types' => ['pdc-item'], 'args' => [ 'meta_box' => 'simple', - 'show_in_rest' => false, + 'show_in_rest' => true, ], 'names' => [ 'singular' => __('Aspect', 'pdc-base'), @@ -62,7 +63,7 @@ 'object_types' => ['pdc-item'], 'args' => [ 'meta_box' => 'simple', - 'show_in_rest' => false, + 'show_in_rest' => true, ], 'names' => [ 'singular' => __('Usage', 'pdc-base'), @@ -74,7 +75,7 @@ 'object_types' => ['pdc-item'], 'args' => [ 'meta_box' => 'simple', - 'show_in_rest' => false, + 'show_in_rest' => true, 'show_admin_column' => true, ], 'names' => [ @@ -86,7 +87,7 @@ 'pdc-show-on' => [ 'object_types' => ['pdc-item', 'pdc-category', 'pdc-subcategory'], 'args' => [ - 'show_in_rest' => false, + 'show_in_rest' => true, 'show_admin_column' => true, 'capabilities' => [ 'manage_terms' => 'manage_categories', diff --git a/pdc-base.php b/pdc-base.php index 75fa833..4f86dbc 100644 --- a/pdc-base.php +++ b/pdc-base.php @@ -4,7 +4,7 @@ * Plugin Name: Yard | PDC Base * Plugin URI: https://www.openwebconcept.nl/ * Description: Acts as foundation for other PDC related content plugins. This plugin implements actions to allow for other plugins to add and/or change Custom Posttypes, Metaboxes, Taxonomies, en Posts 2 posts relations. - * Version: 3.11 + * Version: 3.11.1 * Author: Yard | Digital Agency * Author URI: https://www.yard.nl/ * License: GPL-3.0 diff --git a/src/Base/Foundation/Plugin.php b/src/Base/Foundation/Plugin.php index ca69499..2a932cd 100644 --- a/src/Base/Foundation/Plugin.php +++ b/src/Base/Foundation/Plugin.php @@ -19,7 +19,7 @@ class Plugin * * @var string */ - public const VERSION = '3.11'; + public const VERSION = '3.11.1'; /** * Path to the root of the plugin. @@ -135,7 +135,7 @@ public function filterPlugin(): void */ public function callServiceProviders(string $method, string $key = ''): void { - $offset = $key ? "core.providers.{$key}" : 'core.providers'; + $offset = $key ? "core.providers.{$key}" : 'core.providers'; $services = $this->config->get($offset); foreach ($services as $service) {