PluginProbe
Disable Comments & Delete All Comments / trunk
Disable Comments & Delete All Comments vtrunk
1.3.3 1.3.2 trunk 1.0.0 1.0.4 1.0.5 1.0.8 1.0.9 1.1.1 1.1.3 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.3.0 1.3.1
comments-plus / libs / factory / core / boot.php

boot.php in Disable Comments & Delete All Comments trunk, at libs/factory/core/boot.php

76 lines 2.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Factory Plugin
4 *
5 * @author @author Alex Kovalev <alex.kovalevv@gmail.com>, repo: https://github.com/alexkovalevv
6 * @since 1.0.0
7 * @package core
8 * @copyright (c) 2018, Webcraftic Ltd
9 *
10 */
11
12 // Exit if accessed directly
13 if ( ! defined( 'ABSPATH' ) ) {
14 exit;
15 }
16
17 if ( defined( 'FACTORY_480_LOADED' ) ) {
18 return;
19 }
20
21 define( 'FACTORY_480_LOADED', true );
22
23 define( 'FACTORY_480_VERSION', '4.8.0' );
24
25 define( 'FACTORY_480_DIR', dirname( __FILE__ ) );
26 define( 'FACTORY_480_URL', plugins_url( '', __FILE__ ) );
27
28 add_action( 'init', function () {
29 load_plugin_textdomain( 'wbcr_factory_480', false, dirname( plugin_basename( __FILE__ ) ) . '/langs' );
30 } );
31
32 #comp merge
33 require_once( FACTORY_480_DIR . '/includes/functions.php' );
34
35 require_once( FACTORY_480_DIR . '/includes/entities/class-factory-paths.php' );
36 require_once( FACTORY_480_DIR . '/includes/entities/class-factory-support.php' );
37
38 require_once( FACTORY_480_DIR . '/includes/class-factory-requests.php' );
39 require_once( FACTORY_480_DIR . '/includes/class-factory-options.php' );
40 require_once( FACTORY_480_DIR . '/includes/class-factory-plugin-base.php' );
41 require_once( FACTORY_480_DIR . '/includes/class-factory-migrations.php' );
42 require_once( FACTORY_480_DIR . '/includes/class-factory-notices.php' );
43
44 // ASSETS
45 require_once( FACTORY_480_DIR . '/includes/assets-managment/class-factory-assets-list.php' );
46 require_once( FACTORY_480_DIR . '/includes/assets-managment/class-factory-script-list.php' );
47 require_once( FACTORY_480_DIR . '/includes/assets-managment/class-factory-style-list.php' );
48
49 // PREMIUM
50 require_once( FACTORY_480_DIR . '/includes/premium/class-factory-license-interface.php' );
51 require_once( FACTORY_480_DIR . '/includes/premium/class-factory-provider-abstract.php' );
52 require_once( FACTORY_480_DIR . '/includes/premium/class-factory-manager.php' );
53
54 // UPDATES
55 require_once( FACTORY_480_DIR . '/includes/updates/repositories/class-factory-repository-abstract.php' );
56 require_once( FACTORY_480_DIR . '/includes/updates/repositories/class-factory-wordpress.php' );
57 require_once( FACTORY_480_DIR . '/includes/updates/repositories/class-factory-github.php' );
58 require_once( FACTORY_480_DIR . '/includes/updates/class-factory-upgrader.php' );
59 require_once( FACTORY_480_DIR . '/includes/updates/class-factory-premium-upgrader.php' );
60
61 require_once( FACTORY_480_DIR . '/includes/class-factory-plugin-abstract.php' );
62
63 require_once( FACTORY_480_DIR . '/includes/activation/class-factory-activator.php' );
64 require_once( FACTORY_480_DIR . '/includes/activation/class-factory-update.php' );
65 #endcomp
66
67 add_action( 'admin_enqueue_scripts', function () {
68 wp_enqueue_script( 'wfactory-480-core-general', FACTORY_480_URL . '/assets/js/core-general.js', [
69 'jquery'
70 ], FACTORY_480_VERSION );
71 wp_enqueue_script( 'wfactory-480-core-components', FACTORY_480_URL . '/assets/js/core-components.js', [
72 'jquery',
73 'wfactory-480-core-general'
74 ], FACTORY_480_VERSION );
75 } );
76