Tribe__Events__Editor::block_categories( $categories, $post )
Add “Event Blocks” category to the editor
Return
(array)
Source
File: src/Tribe/Editor.php
public function block_categories( $categories, $post ) {
if ( Tribe__Events__Main::POSTTYPE !== $post->post_type ) {
return $categories;
}
return array_merge(
$categories,
array(
array(
'slug' => 'tribe-events',
'title' => __( 'Event Blocks', 'the-events-calendar' ),
),
)
);
}
Changelog
| Version | Description |
|---|---|
| 4.7 | Introduced. |