` to trigger the CSV stream * — handler lives in {@see \DuckDev\FourNotFour\LogsExporter\Api}. */ const D404_LOGS_EXPORTER_ACTION = 'd404_logs_export'; /* * Class loader. * * The addon is small enough that wiring up Composer would be heavier * than the code it autoloads — a hand-written loader for our handful * of `class-*.php` files keeps the addon dependency-free while still * following the parent plugin's file-naming convention. */ require_once D404_LOGS_EXPORTER_DIR . 'includes/class-plugin.php'; require_once D404_LOGS_EXPORTER_DIR . 'includes/class-assets.php'; require_once D404_LOGS_EXPORTER_DIR . 'includes/class-exporter.php'; require_once D404_LOGS_EXPORTER_DIR . 'includes/class-api.php'; /* * Register with the parent on `plugins_loaded` so the Addons page + * Freemius see us regardless of load order. The rest of the addon * boots on `404_to_301_init`, once Core has finished wiring up. */ add_filter( '404_to_301_register_addon', array( \DuckDev\FourNotFour\LogsExporter\Plugin::class, 'register_addon' ) ); add_action( '404_to_301_init', array( \DuckDev\FourNotFour\LogsExporter\Plugin::class, 'boot' ) );