Eklentiyi yapılandırma
Eklentiyi yapılandırmaCustomPostUnion'ı tek bir tipe çözümleme

CustomPostUnion'ı tek bir tipe çözümleme

CustomPostUnion'a yalnızca tek bir tip eklendiğinde (örn: yalnızca Post), CustomPostUnion'a çözümlenen alanların o benzersiz tipe çözümlenmesini sağlayabiliriz.

Bunun için Schema Custom Posts Ayarlar sayfasına gidin ve "Use single type instead of union type?" seçeneğine tıklayın:

Custom Posts için Ayarlar
Custom Posts için Ayarlar

Örneğin, Post tek tip ise Root tipinin customPosts alanı doğrudan ona çözümlenir:

customPosts alanı Post tipine çözümlenir