breznflow/breznflow/breznflow.php
Michael 5ef9e65617 Restructure repo: move plugin into breznflow/ subfolder, add README/LICENSE
- Move all plugin files into breznflow/ subdirectory (matches BreznGEO structure)
- Add README.md (English) and README.de.md (German) with full documentation
- Add GPL-2.0 LICENSE file
- Rewrite readme.txt: expanded description, FAQs, external services, changelog

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-30 15:26:24 +00:00

52 lines
1.2 KiB
PHP

<?php
/**
* BreznFlow main plugin file.
*
* @package BreznFlow
* @since 1.0.0
*
* Plugin Name: BreznFlow
* Plugin URI: https://noschmarrn.dev/
* Description: Display n8n automation workflows with an interactive SVG diagram, node detail panel, and sensitive data masking.
* Version: 1.0.1
* Requires at least: 6.0
* Requires PHP: 8.0
* Author: NoSchmarrn.dev
* Author URI: https://noschmarrn.dev/
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: breznflow
* Domain Path: /languages
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
define( 'BREZNFLOW_VERSION', '1.0.1' );
define( 'BREZNFLOW_FILE', __FILE__ );
define( 'BREZNFLOW_DIR', plugin_dir_path( __FILE__ ) );
define( 'BREZNFLOW_URL', plugin_dir_url( __FILE__ ) );
require_once BREZNFLOW_DIR . 'includes/Core.php';
add_action(
'plugins_loaded',
static function (): void {
\BreznFlow\Core::instance()->init();
}
);
register_activation_hook(
BREZNFLOW_FILE,
function () {
flush_rewrite_rules();
}
);
register_deactivation_hook(
BREZNFLOW_FILE,
function () {
flush_rewrite_rules();
}
);