-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathloader.php
57 lines (50 loc) · 1.44 KB
/
loader.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
51
52
53
54
55
56
57
<?php
/**
* Plugin Name: BuddyBuilder - BuddyPress Builder for Elementor
* Description: Fully build and customize your BuddyPress community site using Elementor.
* Plugin URI: https://staxwp.com/go/buddybuilder/
* Author: StaxWP
* Author URI: https://staxwp.com
* Version: 1.8.0
*
* Elementor tested up to: 3.14
* Elementor Pro tested up to: 3.14
*
* Text Domain: stax-buddy-builder
*/
define( 'BPB_VERSION', '1.8.0' );
define( 'BPB_HOOK_PREFIX', 'bpb_' );
define( 'BPB_ADMIN_PREFIX', 'buddy-builder-' );
define( 'BPB_FILE', __FILE__ );
define( 'BPB_BASE_URL', plugins_url( '/', BPB_FILE ) );
define( 'BPB_BASE_PATH', plugin_dir_path( BPB_FILE ) );
define( 'BPB_ASSETS_URL', BPB_BASE_URL . 'assets/' );
define( 'BPB_ADMIN_ASSETS_URL', BPB_BASE_URL . 'admin/assets/' );
if ( file_exists( BPB_BASE_PATH . 'vendor/autoload.php' ) ) {
require BPB_BASE_PATH . 'vendor/autoload.php';
}
require_once BPB_BASE_PATH . 'core/Plugin.php';
/**
* Returns the Plugin application instance.
*
* @return \Buddy_Builder\Plugin
* @since 1.0.0
*/
function buddy_builder() {
return \Buddy_Builder\Plugin::get_instance();
}
/**
* Plugin localization
*
* @return void
*/
function buddybuilder_load_plugin_textdomain() {
load_plugin_textdomain( 'stax-buddy-builder', false, basename( __DIR__ ) . '/languages/' );
}
add_action( 'plugins_loaded', 'buddybuilder_load_plugin_textdomain' );
/**
* Initializes the Plugin application.
*
* @since 1.0.0
*/
buddy_builder();