Skip to content

Commit

Permalink
(chore): add show_in_rest arg to all taxonomies
Browse files Browse the repository at this point in the history
  • Loading branch information
YvetteNikolov committed Feb 19, 2024
1 parent d9e092b commit 3ae332e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
11 changes: 6 additions & 5 deletions config/taxonomies.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
'back_to_items' => __('← Back to tags', 'pdc-base'),
],
'meta_box' => 'simple',
'show_in_rest' => true,
],
'names' => [
'singular' => __('Audience', 'pdc-base'),
Expand All @@ -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'),
Expand All @@ -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'),
Expand All @@ -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'),
Expand All @@ -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' => [
Expand All @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion pdc-base.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Base/Foundation/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 3ae332e

Please sign in to comment.