Hi,
I’ll update this code snippet to explain a bit more clearly, but this snippet is only needed if you want to do that programmatically, but you can also do that in Settings -> WP Customer Area -> {each private content type} -> uncheck “hide posts where the currently connected user is the author”.
I’ll also test this snippet again to make sure it is applying correctly to any post_type, in case something is going wrong.
Best regards.
Want to help WP Customer Area? It only takes few seconds!
Rate & review the plugin on WordPress.org 🙂