aGo Legal: '; echo esc_html__( 'aGo Legal Pro is active on this site and replaces this free version. You can safely deactivate and delete "aGo Legal" from the Plugins page. Your settings are preserved.', 'ago-legal' ); echo '

'; }); return; } defined( 'AGOLEGAL_VERSION' ) || define( 'AGOLEGAL_VERSION', '1.1.0' ); defined( 'AGOLEGAL_FILE' ) || define( 'AGOLEGAL_FILE', __FILE__ ); defined( 'AGOLEGAL_PATH' ) || define( 'AGOLEGAL_PATH', plugin_dir_path( __FILE__ ) ); defined( 'AGOLEGAL_URL' ) || define( 'AGOLEGAL_URL', plugin_dir_url( __FILE__ ) ); /* PSR-4 Autoloader: AgoLab\Legal\ → src/ (path captured locally) */ $agolegal_autoload_path = plugin_dir_path( __FILE__ ); spl_autoload_register( function ( string $class ) use ( $agolegal_autoload_path ) { $prefix = 'AgoLab\\Legal\\'; if ( strncmp( $class, $prefix, strlen( $prefix ) ) !== 0 ) return; $file = $agolegal_autoload_path . 'src/' . str_replace( '\\', '/', substr( $class, strlen( $prefix ) ) ) . '.php'; if ( file_exists( $file ) ) require $file; }); register_activation_hook( __FILE__, function () { \AgoLab\Legal\Consent::create_table(); \AgoLab\Legal\PageCreator::create_pages(); }); add_action( 'plugins_loaded', function () { \AgoLab\Legal\Plugin::instance(); });