Blocks

Class: Used for Block logic when creating or editing an event.

Namespace: TEC\Events_Community\Block_Conversion

Blocks::extract_block_text()

Method: Takes the content with block editor markup and tries to filter out the main content to display on the submit event page.

Namespace: TEC\Events_Community\Block_Conversion

Blocks::reverse_wpautop()

Method: Reverses the effects of wpautop by converting HTML paragraph and break tags back into plain text line breaks.

Namespace: TEC\Events_Community\Block_Conversion