瀏覽代碼

:recycle: adding endpoints for technique sort-bys

tags/0.9.0
J 4 年之前
父節點
當前提交
3bab47487f
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3
    2
      plugins/cia-endpoints/cia-end-points.php

+ 3
- 2
plugins/cia-endpoints/cia-end-points.php 查看文件

@@ -71,14 +71,15 @@ add_action( 'rest_api_init', function () {
71 71
     
72 72
     $episode_sorts = ['by_episode'];
73 73
     $by_episode_types = [
74
-        'artist', 'guide', 'short'
74
+        'artist', 'guide', 'short',
75
+        'technique'
75 76
     ];
76 77
     _make_sorts($by_episode_types, $episode_sorts);
77 78
     
78 79
     $material_sorts = ['by_material'];
79 80
     $by_material_types = [
80 81
         'artist', 'guide', 'short',
81
-        'object', 'publication',
82
+        'object', 'publication', 'technique'
82 83
     ];
83 84
     _make_sorts($by_material_types, $material_sorts);
84 85
     

Loading…
取消
儲存