diff --git a/includes/class-dependencies.php b/includes/class-dependencies.php index 6ff910a6..799119f0 100644 --- a/includes/class-dependencies.php +++ b/includes/class-dependencies.php @@ -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 * diff --git a/includes/class-init.php b/includes/class-init.php index 4ee8b49b..2314ff75 100644 --- a/includes/class-init.php +++ b/includes/class-init.php @@ -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 {