52 lines
1.2 KiB
PHP
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();
|
|
}
|
|
);
|