-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathacf-multiforms-example.php
50 lines (43 loc) · 1.15 KB
/
acf-multiforms-example.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/**
* Plugin Name: ACF Multi-steps Form
* Plugin URI: https://saika.li/multi-steps-form-acf/
* Description: A proof-of-concept on how to create a multi-steps ACF form with follow-up link.
* Version: 1.0.0
* Author: Pierre Saïkali
* Author URI: https://saika.li
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: amf
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die();
}
/**
* Define global constants.
*
* @since 1.0.0
*/
// Plugin version.
if ( ! defined( 'AMF_VERSION' ) ) {
define( 'AMF_VERSION', '1.0.0' );
}
if ( ! defined( 'AMF_NAME' ) ) {
define( 'AMF_NAME', trim( dirname( plugin_basename( __FILE__ ) ), '/' ) );
}
if ( ! defined( 'AMF_DIR' ) ) {
define( 'AMF_DIR', WP_PLUGIN_DIR . '/' . AMF_NAME );
}
if ( ! defined( 'AMF_URL' ) ) {
define( 'AMF_URL', WP_PLUGIN_URL . '/' . AMF_NAME );
}
/**
* Include obligatory files.
*/
require_once AMF_DIR . '/src/class-utils.php';
require_once AMF_DIR . '/src/class-shortcode.php';
/**
* Fire the darn thing!
*/
new ACF_Multiforms_Example\Shortcode();