'bigb-image-gallery-editor-style', 'style' => 'bigb-image-gallery-style', 'render_callback' => [$this, 'render'] ] ); // Register Block wp_set_script_translations( 'bigb-image-gallery-editor-script', 'image-gallery', plugin_dir_path( __FILE__ ) . 'languages' ); // Translate } function render( $attributes ){ extract( $attributes ); ob_start(); ?>