Просмотр исходного кода

:sparkles: added metaboxes for hero and sticky for new post types

tags/0.9.0
J 4 лет назад
Родитель
Сommit
9710017252
1 измененных файлов: 2 добавлений и 2 удалений
  1. 2
    2
      plugins/cia-post-types/includes/custom-metaboxes.php

+ 2
- 2
plugins/cia-post-types/includes/custom-metaboxes.php Просмотреть файл

@@ -39,7 +39,7 @@
39 39
         $cmb = new_cmb2_box([
40 40
             'id'              => 'hero_metabox',
41 41
             'title'           => __( 'Hero', 'cmb2' ),
42
-            'object_types'    => ['artist', 'episode', 'event', 'exhibition'], // Post type
42
+            'object_types'    => ['artist', 'episode', 'event', 'exhibition', 'guide', 'short', 'object', 'publication'], // Post type
43 43
             'show_in_rest'    => WP_REST_Server::READABLE
44 44
         ]);
45 45
 
@@ -62,7 +62,7 @@
62 62
         $cmb = new_cmb2_box([
63 63
             'id'           => 'stick_metabox',
64 64
             'title'        => __( 'Sticky Post', 'cmb2' ),
65
-            'object_types' => ['artist', 'event', 'exhibition', 'episode', 'page', 'post'], // Post type
65
+            'object_types' => ['artist', 'episode', 'event', 'exhibition', 'guide', 'short', 'object', 'publication', 'page', 'post'], // Post type
66 66
             'show_in_rest' => WP_REST_Server::READABLE
67 67
         ]);
68 68
 

Загрузка…
Отмена
Сохранить