-
Notifications
You must be signed in to change notification settings - Fork 21
/
pmpro-buddypress.php
executable file
·47 lines (40 loc) · 1.69 KB
/
pmpro-buddypress.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
<?php
/*
Plugin Name: Paid Memberships Pro - BuddyPress & BuddyBoss Add On
Plugin URI: https://www.paidmembershipspro.com/add-ons/buddypress-integration
Description: Restrict access to your BuddyPress or BuddyBoss Community using Paid Memberships Pro
Version: 1.4.1
Author: Paid Memberships Pro
Author URI: https://www.paidmembershipspro.com
Text Domain: pmpro-buddypress
Domain Path: /languages
*/
/**
* Load the languages folder for translations.
*/
function pmpro_bp_load_plugin_text_domain() {
load_plugin_textdomain( 'pmpro-buddypress', false, basename( dirname( __FILE__ ) ) . '/languages' );
}
add_action( 'plugins_loaded', 'pmpro_bp_load_plugin_text_domain' );
/*
includes
*/
define( 'PMPROBP_DIR', dirname( __FILE__ ) );
define( 'PMPROBP_BASENAME', plugin_basename( __FILE__ ) );
define( 'PMPROBP_LOCK_ALL_ACCESS', -1);
define( 'PMPROBP_USE_NON_MEMBER_SETTINGS', 0);
define( 'PMPROBP_GIVE_ALL_ACCESS', 1);
define( 'PMPROBP_SPECIFIC_FEATURES', 2);
require_once( PMPROBP_DIR . '/includes/common.php' );
require_once( PMPROBP_DIR . '/includes/admin.php' );
require_once( PMPROBP_DIR . '/includes/pmpro-buddypress-settings.php' );
require_once( PMPROBP_DIR . '/includes/membership-level-settings.php' );
require_once( PMPROBP_DIR . '/includes/directory.php' );
require_once( PMPROBP_DIR . '/includes/groups.php' );
require_once( PMPROBP_DIR . '/includes/member-types.php' );
require_once( PMPROBP_DIR . '/includes/profiles.php' );
require_once( PMPROBP_DIR . '/includes/registration.php' );
require_once( PMPROBP_DIR . '/includes/restrictions.php' );
if ( class_exists( 'PMPro_Approvals' ) ) {
require_once( PMPROBP_DIR . '/includes/approvals.php' );
}