-
Notifications
You must be signed in to change notification settings - Fork 7
/
demo-acf-plugin.php
31 lines (29 loc) · 1.09 KB
/
demo-acf-plugin.php
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
<?php
/**
* Plugin Name: Demo ACF plugin
* Description: A demo WordPress plugin for custom ACF PRO Blocks, Post Types, Options Pages, Taxonomies and more.
* Requires at least: 6.4
* Requires PHP: 7.4
* Version: 0.1.5
* Author: ACF
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: demo-acf
*
* @package demo-acf
*/
// Define our handy constants.
define( 'DEMO_ACF_VERSION', '0.1.5' );
define( 'DEMO_ACF_PLUGIN_DIR', __DIR__ );
define( 'DEMO_ACF_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'DEMO_ACF_PLUGIN_BLOCKS', DEMO_ACF_PLUGIN_DIR . '/blocks/' );
// Set custom load & save JSON points for ACF sync.
require 'includes/acf-json.php';
// Register blocks and other handy ACF Block helpers.
require 'includes/acf-blocks.php';
// Register a default "Site Settings" Options Page.
require 'includes/acf-settings-page.php';
// Restrict access to ACF Admin screens.
require 'includes/acf-restrict-access.php';
// Display and template helpers.
require 'includes/template-tags.php';