We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10f2978 commit d682030Copy full SHA for d682030
index.php
@@ -0,0 +1,2 @@
1
+<?php
2
+// Silence is golden.
php-annotations.php
@@ -0,0 +1,23 @@
+/*
3
+Plugin Name: PHP Annotations
4
+Plugin URI: https://marcuskober.de
5
+Description: Example plugin that uses php annotation for registering hooks
6
+Version: 1.0.0
7
+Requires at least: 6.0
8
+Requires PHP: 8.1
9
+Author: Marcus Kober
10
+Author URI: https://marcuskober.de
11
+Text Domain: phpannotations
12
+*/
13
+
14
+if (! defined('ABSPATH')) {
15
+ die('Go away');
16
+}
17
18
+define('PHPAN_DIR', plugin_dir_path( __FILE__ ));
19
+define('PHPAN_URL', plugin_dir_url( __FILE__ ));
20
+define('PHPAN_BASENAME', plugin_basename( __FILE__ ));
21
+define('PHPAN_VERSION', '1.0.0');
22
23
+require PHPAN_DIR . 'vendor/autoload.php';
0 commit comments