breznflow/breznflow/breznflow.php
Michael 066414724b release: v1.0.2
- Fix WordPress.org plugin review issues (nonce verification, input sanitization, output escaping)
- Embed page uses wp_enqueue_style/wp_enqueue_script with wp_head/wp_footer
- Update plugin author to NoSchmarrn.dev
- Shorten readme.txt short description to ≤150 chars
- Add GitHub Actions release workflow
- Add .gitignore
2026-04-14 11:21:48 +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://breznflow.com/
* Description: Display n8n automation workflows with an interactive SVG diagram, node detail panel, and sensitive data masking.
* Version: 1.0.2
* 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.2' );
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();
}
);