ソースを参照

:bug: switching publicly_queryable so slugs are exposed

tags/0.9.0
j 4年前
コミット
a811aae3d6
1個のファイルの変更1行の追加1行の削除
  1. 1
    1
      plugins/cia-post-types/cia-post-types.php

+ 1
- 1
plugins/cia-post-types/cia-post-types.php ファイルの表示

@@ -54,7 +54,7 @@ class PostType {
54 54
             'supports'           => ['title', 'editor', 'revisions', 'thumbnail'],
55 55
             'has_archive'        => false,
56 56
             'show_in_rest'       => true,
57
-            'publicly_queryable' => false
57
+            'publicly_queryable' => true, // Needed for slug edit
58 58
         ];
59 59
 
60 60
         register_post_type( $this->post_type, $args );

読み込み中…
キャンセル
保存