__('AI Story Generator','ai-story-generator-block'), 'description' => __('AI Story Generator iframe','ai-story-generator-block'), 'category' => 'common', 'icon' => 'edit', 'keywords' => array('story', 'ai', 'book'), 'editor_script' => 'story321-ai-story-generator-block', 'render_callback' => 'story321_render_ai_story_generator_block' )); } add_action('init', 'story321_register_ai_story_generator_block'); // 渲染区块 function story321_render_ai_story_generator_block($attributes) { ob_start(); ?>