-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfield-reference.php
More file actions
34 lines (28 loc) · 987 Bytes
/
field-reference.php
File metadata and controls
34 lines (28 loc) · 987 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
* Plugin Name: Field Reference (Example)
* Description: WP Wireframe example — kitchen-sink demo of every field type, plus a curated "Example" tab that reads like a real product settings page.
* Version: 1.0.0
* Requires at least: 6.5
* Requires PHP: 8.1
* License: GPL-2.0-or-later
* Text Domain: field-reference
*
* @package FieldReference
*/
declare(strict_types=1);
if (! defined('ABSPATH')) {
exit;
}
require_once __DIR__ . '/vendor/wp-wireframe/vendor/autoload.php';
// Demo data + callbacks for the `table` field.
require_once __DIR__ . '/demo/entries-store.php';
add_action('init', function () {
Wireframe\App::boot([
'prefix' => 'field-reference',
'page_title' => __('Field Reference', 'field-reference'),
'option_key' => 'field_reference_settings',
'menu_icon' => 'dashicons-screenoptions',
'config' => __DIR__ . '/config/settings.php',
]);
});