esc_url_raw( rest_url() ), 'nonce' => wp_create_nonce( 'wp_rest' ) ) ); // 加载翻译 wp_set_script_translations( 'wpthemoon-batch-generator', 'wpthemoon' ); } } /** * 渲染批量生成器页面 */ public function render_batch_generator_page() { ?>