-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviget-form-blocks.php
41 lines (35 loc) · 1.07 KB
/
viget-form-blocks.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
<?php
/**
* Plugin Name: Viget Form Blocks
* Plugin URI: https://viget.com
* Description: Form blocks using ACF.
* Version: 1.0.0
* Requires at least: 5.7
* Requires PHP: 8.1
* Requires Plugins: advanced-custom-fields-pro, viget-blocks-toolkit
* Author: Viget
* Author URI: https://viget.com
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: viget-form-blocks
* Domain Path: /languages
*
* @package VigetFormBlocks
*/
// Plugin version.
const VGTFB_VERSION = '1.0.0';
// Plugin path.
define( 'VGTFB_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
// Plugin URL.
define( 'VGTFB_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
// Maybe Load Composer dependencies.
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require_once __DIR__ . '/vendor/autoload.php';
}
// Load include files.
$plugin_files = glob( VGTFB_PLUGIN_PATH . 'includes/*.php' );
foreach ( $plugin_files as $path ) {
if ( file_exists( $path ) ) {
require_once $path;
}
}