# WP Discourse が非公開投稿を公開しません

**URL:** <https://meta.discourse.org/t/wp-discourse-wont-publish-private-post/96166>\
**Category:** WordPress\
**Created:** [2018 年 9 月 1 日午後 7:43 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:** 3

<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:** [2018 年 9 月 1 日午後 9:35 UTC](https://meta.discourse.org/t/wp-discourse-wont-publish-private-post/96166/3 "2018-09-01T21:35:57Z")

</div>

Thanks for the fast and thorough reply. I’m a semi-regular PHP code reader, an occasional PHP code modifier and a very rare PHP code writer. I presume I can learn how to “hook into the discourse\_post\_types\_to\_publish” from other hook examples and then either replace the array to add to it.

WRT other hooks, I have another site using [WP Discourse](https://github.com/discourse/wp-discourse). I use a modified Buddy Press plugin to make their first name a Unique and obfuscated ID because it is a site about health issues and people want to connect but stay anonymous. I am using SSO but I want to change the mapping of WP user profiles fields for Discourse so that name becomes username. (I don’t know that this is the right way to solve this give the role of usernames in SSO so feel free to say there is a different way to do this other than hooking the mapping.) Any insight would be helpful.

Paul

---

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