What is the WordPress `get_post_status()` return for a post with parent whose parent is ‘publish’ vs ‘inherit’?
Key points
- get_post_status() resolves 'inherit' by checking the parent post's status
- Attachments and revisions use 'inherit' as their post_status
- The effective status of an attachment is its parent post's status
- This behavior is significant for controlling access to attachments
Ready to go further?
