PluginProbe
EmbedPress – PDF Embedder, 3D PDF FlipBook, Google Reviews, YouTube Videos, Upload & Embed PDF documents / 4.6.1
EmbedPress – PDF Embedder, 3D PDF FlipBook, Google Reviews, YouTube Videos, Upload & Embed PDF documents v4.6.1
4.6.5 4.6.4 4.6.3 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 All 189 releases
embedpress / Core / init.php

init.php in EmbedPress – PDF Embedder, 3D PDF FlipBook, Google Reviews, YouTube Videos, Upload & Embed PDF documents 4.6.1, at Core/init.php

29 lines 819 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * EmbedPress Core Initialization
5 *
6 * This file initializes core EmbedPress functionality including the asset manager
7 */
8
9 use EmbedPress\Core\AssetManager;
10 use EmbedPress\Core\LocalizationManager;
11
12 // Prevent direct access
13 if (!defined('ABSPATH')) {
14 exit;
15 }
16
17 // Include the AssetManager and LocalizationManager classes
18 require_once EMBEDPRESS_PLUGIN_DIR_PATH . 'Core/AssetManager.php';
19 require_once EMBEDPRESS_PLUGIN_DIR_PATH . 'Core/LocalizationManager.php';
20
21 // Include Analytics class
22 require_once EMBEDPRESS_PATH_BASE . 'EmbedPress/Analytics/Analytics.php';
23
24 // Initialize AssetManager and LocalizationManager when WordPress is ready
25 add_action('init', function() {
26 AssetManager::init();
27 LocalizationManager::init();
28 }, 5); // Early priority to ensure it's loaded before other components
29