apply_filters( 'tec_block_has_block', bool $has_block, WP_Post|null $wp_post, int|null $post_id, string $block_name, Tribe__Editor__Blocks__Abstract $this )

Filters whether the post has this block.


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.

$block_name

(string) The block name.

$this

(Tribe__Editor__Blocks__Abstract) The block object.


Top ↑

Source

File: src/Tribe/Editor/Blocks/Abstract.php


Top ↑

Changelog

Changelog
Version Description
5.1.5 Introduced.