Init development stack
This commit is contained in:
21
index.php
Normal file
21
index.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* Plugin Name: Acorn Plugin
|
||||
* Description: Start für ein Acorn Wordpress Plugin
|
||||
* Requires at least: 5.2
|
||||
* Requires PHP: 8.4
|
||||
* Version: 0.01
|
||||
* Author: Jan-Niclas Loosen - Loosen-IT
|
||||
* 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);
|
||||
Reference in New Issue
Block a user