# WP Discourse Won't Publish Private Post

**URL:** <https://meta.discourse.org/t/wp-discourse-wont-publish-private-post/96166>\
**Category:** WordPress\
**Created:** [01.Сентябрь.2018 19:43:37 UTC](https://meta.discourse.org/t/wp-discourse-wont-publish-private-post/96166 "2018-09-01T19:43:37Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![pgross](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pgross/32/157899_2.png) [@pgross](https://meta.discourse.org/u/pgross)\
**Post date:** [01.Сентябрь.2018 19:43:38 UTC](https://meta.discourse.org/t/wp-discourse-wont-publish-private-post/96166/1 "2018-09-01T19:43:38Z")

</div>

Hi,

I am using Discourse with SSO from Wordpress and all discussions are private. But I want Wordpress to not only publish public posts on my Discourse forum but also private posts. It works fine for public but never shows up for private posts. Only my WP subscribers have access to my Discourse forum. So I’m wondering if I can make a mod to the plug-in. I found the code for valid\_post\_sync wp\_discourse\_publish.php but that is higher level --for post types like post or page. I cannot find the code that might be filtering the post for privacy. Can you tell where I might find this and if there is a best practice for modifying the WPDiscourse plugin with this mod?

Thanks,

Paul

---

_[View the full topic](https://meta.discourse.org/t/wp-discourse-wont-publish-private-post/96166)._
