'abb-alert-box-editor-style', 'style' => 'abb-alert-box-style', 'render_callback' => [$this, 'render'] ] ); // Register Block wp_set_script_translations( 'abb-alert-box-editor-script', 'alert-box-block', plugin_dir_path( __FILE__ ) . 'languages' ); // Translate } function render( $attributes ){ extract( $attributes ); $className = $className ?? ''; $abbBlockClassName = 'wp-block-abb-alert-box ' . $className . ' align' . $align; ob_start(); ?>