mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- added forumWP to dependencies;
This commit is contained in:
@@ -60,12 +60,12 @@ if ( ! class_exists( 'um\Dependencies' ) ) {
|
||||
'beaver-builder' => '2.0',
|
||||
'user-photos' => '2.0.1',
|
||||
'user-exporter' => '1.0.0',
|
||||
// 'bookmark' => '2.0',
|
||||
'user-events' => '1.0.0',
|
||||
'filesharing' => '1.0.0',
|
||||
'user-notes' => '2.0',
|
||||
'user-bookmarks' => '2.0',
|
||||
'unsplash' => '2.0',
|
||||
'fmwp' => '2.0.1',
|
||||
);
|
||||
|
||||
|
||||
@@ -119,6 +119,20 @@ if ( ! class_exists( 'um\Dependencies' ) ) {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Check if ForumWP plugin is active
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function forumwp_active_check() {
|
||||
|
||||
if ( ! self::$active_plugins ) self::init();
|
||||
|
||||
return in_array( 'forumwp/forumwp.php', self::$active_plugins ) || array_key_exists( 'forumwp/forumwp.php', self::$active_plugins );
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Check if myCRED plugin is active
|
||||
*
|
||||
|
||||
@@ -36,6 +36,7 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
* @method UM_Notes Notes()
|
||||
* @method UM_User_Bookmarks User_Bookmarks()
|
||||
* @method UM_Unsplash Unsplash()
|
||||
* @method UM_FMWP FMWP()
|
||||
*/
|
||||
final class UM extends UM_Functions {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user