-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.php
More file actions
49 lines (41 loc) · 1 KB
/
bootstrap.php
File metadata and controls
49 lines (41 loc) · 1 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
41
42
43
44
45
46
47
48
49
<?php
/**
* Plugin Name: ACF Hero Section
* Plugin URI: https://developingdesigns.com/
* Description: Customizable ACF Hero section.
* Author: Developing Designs
* Author URI: https://developingdesigns.com/
* Version: 1.0.0
* Tested up to: 5.2.2
* Text Domain: acf-hero-section
* Domain Path: /lang
*
* @package DevDesigns\AcfHeroSection
* @author Developing Designs
* @since 1.0.0
*/
use function DevDesigns\AcfHeroSection\defineConstants;
/**
* Require Composer autoloader.
*
* @since 1.0.0
*/
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require_once __DIR__ . '/vendor/autoload.php';
}
/**
* Initialize constants.
*
* @since 1.0.0
*/
if ( function_exists( 'DevDesigns\AcfHeroSection\defineConstants' ) ) {
defineConstants( '1.0.0', __FILE__ );
}
/**
* Bootstrap plugin.
*
* @since 1.0.0
*/
add_action( 'plugins_loaded', function (): void {
add_action( 'wp_enqueue_scripts', 'DevDesigns\AcfHeroSection\Assets\Enqueue::enqueue', 999 );
} );