# Filter out and exclude blocks of published post

**URL:** https://meta.discourse.org/t/filter-out-and-exclude-blocks-of-published-post/306897
**Category:** WordPress
**Created:** [May 6, 2024, 7:50am UTC](https://meta.discourse.org/t/filter-out-and-exclude-blocks-of-published-post/306897 "2024-05-06T07:50:54Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [May 6, 2024, 9:25am UTC](https://meta.discourse.org/t/filter-out-and-exclude-blocks-of-published-post/306897/2 "2024-05-06T09:25:32Z")

</div>

Hey Peter, yes, that’s possible using the `wp_discourse_excerpt` filter:

> [@WP Discourse Filters and Actions](https://meta.discourse.org/t/wp-discourse-filters-and-actions/307211#wp_discourse_excerpt-13):
>
> These are all actions and filters provided by the [WP Discourse](https://github.com/discourse/wp-discourse) plugin. Examples are illustrative only. You will need to test and validate the example on your own instance before using it in production. Filters For a general explanation on how you can use filters in Wordpress see Publishing [WP Discourse](https://github.com/discourse/wp-discourse) publishing filters. discourse\_post\_types\_to\_publish Filter the post types which appear in the “Post Types to Publish” setting post type list. Note that this will not enable or disable discour…

---

_[View the full topic](https://meta.discourse.org/t/filter-out-and-exclude-blocks-of-published-post/306897)._
