mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- add member directory block
This commit is contained in:
@@ -602,6 +602,7 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
$this->external_integrations();
|
||||
$this->gdpr();
|
||||
$this->member_directory();
|
||||
$this->blocks();
|
||||
|
||||
//if multisite networks active
|
||||
if ( is_multisite() ) {
|
||||
@@ -631,6 +632,20 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @since 2.6.1
|
||||
*
|
||||
* @return um\core\Blocks()
|
||||
*/
|
||||
public function blocks() {
|
||||
if ( empty( $this->classes['blocks'] ) ) {
|
||||
$this->classes['blocks'] = new um\core\Blocks();
|
||||
}
|
||||
|
||||
return $this->classes['blocks'];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get extension API
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user