Tribe__Tickets__Editor::block_categories( $categories )
Add the event tickets category into the block categories
Contents
Parameters
- $categories
-
(Required)
- $post
-
(Required)
Return
(array)
Source
File: src/Tribe/Editor.php
public function block_categories( $categories ) {
if ( ! $this->current_type_support_tickets() ) {
return $categories;
}
return array_merge(
$categories,
array(
array(
'slug' => 'tribe-tickets',
'title' => __( 'Tickets Blocks', 'event-tickets' ),
),
)
);
}
Changelog
| Version | Description |
|---|---|
| 4.9 | Introduced. |