Shows ‘stealth’ posts when retrieved using WP-API
-
Whereas stealth-published posts are hidden from feeds and listings, they still appear in results returned using the WP API (v2).
I’ve worked around this fetching the custom ‘_stealth-publish’ meta field and adding to the API result, then checking if this is set when working with the results, but it would be neater if the plugin could handle API alongside the other modes. Thanks Scott!
- The topic ‘Shows ‘stealth’ posts when retrieved using WP-API’ is closed to new replies.