'aninja-lite-editor-script', 'editor_style' => 'aninja-lite-css', 'render_callback' => function ( $attributes, $content ) { if ( ! is_admin() ) { wp_enqueue_style( 'aninja-lite-css' ); } // $content is Gutenberg block HTML — wp_kses_post is the correct // escaping function for trusted block output. False positive note: // Block content is generated by the block editor itself, not user // input, but we apply wp_kses_post for compliance. return wp_kses_post( $content ); }, ] ); } add_action( 'init', 'affilininja_lite_rating_box_init' );