render.php
23 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Server-side rendering for the AI Studio prompt block |
| 4 | * |
| 5 | * @package SG_AI_Studio |
| 6 | */ |
| 7 | |
| 8 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | exit; |
| 10 | } |
| 11 | |
| 12 | /** |
| 13 | * Renders the AI Studio prompt block on the server. |
| 14 | * |
| 15 | * @param array $attributes Block attributes. |
| 16 | * @return string Rendered block HTML. |
| 17 | */ |
| 18 | function sg_ai_studio_render_prompt_block( $attributes ) { |
| 19 | // This block is only for generating content in the editor. |
| 20 | // It doesn't need to display anything on the frontend. |
| 21 | return ''; |
| 22 | } |
| 23 |