Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (30 sloc) 835 Bytes
<?php
/*
Plugin Name: BP Better Directories
Plugin URI: http://github.com/boonebgorges/bp-better-directories
Description: Adds sophisticated search and filters to your BuddyPress member directory
Version: 0.9.2
Author: Boone B Gorges
Author URI: http://boonebgorges.com
Licence: GPLv3
Network: true
*/
define( 'BPBD_VERSION', '0.9.2' );
/**
* Loads BP Better Directories files only if BuddyPress is present
*
* @package BP Better Directories
* @since 1.0
*/
function bpbd_init() {
if ( !function_exists( 'bp_is_active' ) || !bp_is_active( 'xprofile' ) )
return;
require( dirname( __FILE__ ) . '/bpbd.php' );
$bpbd = new BPBD;
if ( is_admin() ) {
require( dirname( __FILE__ ) . '/includes/admin.php' );
$bpbd_admin = new BPBD_Admin;
}
}
add_action( 'bp_include', 'bpbd_init' );
?>