mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-15 12:43:33 +09:00
- member directory code merge;
This commit is contained in:
@@ -563,6 +563,7 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
$this->mobile();
|
||||
$this->external_integrations();
|
||||
$this->gdpr();
|
||||
$this->member_directory();
|
||||
|
||||
//if multisite networks active
|
||||
if ( is_multisite() ) {
|
||||
@@ -572,6 +573,19 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @since 2.1.0
|
||||
*
|
||||
* @return um\core\Member_Directory()
|
||||
*/
|
||||
function member_directory() {
|
||||
if ( empty( $this->classes['member_directory'] ) ) {
|
||||
$this->classes['member_directory'] = new um\core\Member_Directory();
|
||||
}
|
||||
return $this->classes['member_directory'];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get extension API
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user