-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathac-datasource-cookbook.php
More file actions
40 lines (37 loc) · 1.46 KB
/
ac-datasource-cookbook.php
File metadata and controls
40 lines (37 loc) · 1.46 KB
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
35
36
37
38
39
40
<?php
/**
* Plugin Name: AC Datasource Cookbook
* Plugin URI: https://www.admincolumns.com/
* Description: A collection of annotated code examples that demonstrate how to register custom Data Sources for Admin Columns Pro. Enable examples in bootstrap.php.
* Version: 1.0.0
* Requires at least: 5.9
* Requires PHP: 7.4
* Author: Admin Columns
* Author URI: https://www.admincolumns.com/
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*
* -----------------------------------------------------------------------------
* About this plugin
* -----------------------------------------------------------------------------
* The cookbook is a learning resource, not a production plugin. Every file under
* /examples/ is a stand-alone recipe that registers a Data Source via the
* `acp/data-sources/register` action. Each recipe is heavily commented so you
* can read it top to bottom and understand which parts of the Data Sources API
* it demonstrates.
*
* Requirements:
* - Admin Columns Pro
* - The Data Sources addon (bundled with ACP)
*
* Getting started:
* 1. Activate this plugin.
* 2. Open `bootstrap.php` and uncomment the examples you want to try.
* 3. Visit the "DS Cookbook" menu in the WordPress admin to see the
* resulting tables.
*/
declare(strict_types=1);
if (!defined('ABSPATH')) {
exit;
}
require_once __DIR__ . '/bootstrap.php';