apply_filters( "tec_block_{$block_name}_has_block", bool $has_block , WP_Post|null $wp_post , int|null $post_id , Tribe__Editor__Blocks__Abstract $this )
Filters whether the post has this block.
Contents
Parameters
- $has_block
-
(bool) Whether the post has this block.
- $wp_post
-
(WP_Post|null) The post object.
- $post_id
-
(int|null) The post ID.
- $this
-
(Tribe__Editor__Blocks__Abstract) The block object.
Source
Changelog
| Version | Description |
|---|---|
| 5.1.5 | Introduced. |