# 如何在没有自动发布的情况下启用帖子类型的可发布性

**URL:** <https://meta.discourse.org/t/hot-to-enable-publishability-for-a-post-type-without-auto-publish/358495>\
**Category:** WordPress\
**Created:** [2025年三月23日 13:15 UTC](https://meta.discourse.org/t/hot-to-enable-publishability-for-a-post-type-without-auto-publish/358495 "2025-03-23T13:15:55Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [2025年三月23日 14:43 UTC](https://meta.discourse.org/t/hot-to-enable-publishability-for-a-post-type-without-auto-publish/358495/3 "2025-03-23T14:43:21Z")

</div>

我可能是错的；我不认为你仅凭设置就能做到这一点。

使用“按标签排除帖子”怎么样？你可以（通过插件）自动为这些自定义帖子类型应用一个特定的标签。这对你来说可行吗？

你也可以用代码进行过滤，使用 `wpdc_publish_after_save`。

> <https://github.com/discourse/wp-discourse/blob/main/lib/discourse-publish.php#L101>

---

_[View the full topic](https://meta.discourse.org/t/hot-to-enable-publishability-for-a-post-type-without-auto-publish/358495)._
