Improve wp acorn compability

This commit is contained in:
Jan-Niclas Loosen
2026-06-29 19:54:12 +02:00
parent 7f3fd36186
commit 102abe7927
28 changed files with 4090 additions and 1980 deletions
+4 -10
View File
@@ -1,4 +1,5 @@
<?php
/**
* Plugin Name: Acorn Plugin
* Description: Start für ein Acorn Wordpress Plugin
@@ -9,13 +10,6 @@
* Author URI: https://loosen-it.de
*/
include_once 'bootstrap.php';
$renderHello = function () {
if (function_exists('view')) {
return view('hello-world')->render();
}
return 'Hello World';
};
add_shortcode('acorn_hello', $renderHello);
// The boot election lives in bootstrap.php; the shortcode, namespaced views and
// Livewire registration live in AcornPlugin\Providers\PluginServiceProvider.
include_once __DIR__ . '/bootstrap.php';