| | |
| | | <?php |
| | | namespace JVBase\blocks; |
| | | |
| | | use JVBase\managers\Cache; |
| | | use JVBase\managers\DirectoryManager; |
| | | use JVBase\registrar\Registrar; |
| | | use WP_Block; |
| | |
| | | /** |
| | | * Register the FAQ block |
| | | */ |
| | | public function registerBlock() { |
| | | public function registerBlock():void |
| | | { |
| | | // Register the block |
| | | register_block_type( |
| | | JVB_DIR . '/build/faq', |
| | |
| | | * @param WP_Block $block Block instance |
| | | * @return string Rendered block HTML |
| | | */ |
| | | public function render($attributes, $content, $block) |
| | | public function render(array $attributes, string $content, WP_Block $block):string |
| | | { |
| | | ob_start(); |
| | | ?> |