การตั้งค่าปลั๊กอิน
การตั้งค่าปลั๊กอินการอนุญาตการเข้าถึง Custom Post Types

การอนุญาตการเข้าถึง Custom Post Types

Custom post types ที่สามารถ query ได้นั้นต้องมีการกำหนดค่าอย่างชัดเจน ซึ่งสามารถทำได้ใน 2 ที่

ใน Schema Configuration ที่ใช้กับ endpoint โดยเลือกตัวเลือก "Use custom configuration" ภายใต้ "Customize configuration, or use default from Settings?" จากนั้นเลือกรายการที่ต้องการ:

การเลือก Custom Post Types ที่อนุญาตใน Schema Configuration

หรือหากเลือกตัวเลือก "Use configuration from Settings" ระบบจะใช้ค่าที่กำหนดไว้ในส่วน "Included custom post types" ในหน้า Settings ของ Schema Custom Posts:

การเลือก Custom Post Types ที่อนุญาตในการตั้งค่า
การเลือก Custom Post Types ที่อนุญาตในการตั้งค่า