# Read plugin version

**URL:** <https://forums.unrealengine.com/t/read-plugin-version/466129>\
**Category:** Plugins\
**Tags:** notification, unreal-engine, version, Plugins, question\
**Created:** [June 2, 2020, 8:37am UTC](https://forums.unrealengine.com/t/read-plugin-version/466129 "2020-06-02T08:37:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_e577384b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e577384b](https://forums.unrealengine.com/u/anonymous_user_e577384b)\
**Post date:** [June 2, 2020, 8:37am UTC](https://forums.unrealengine.com/t/read-plugin-version/466129/1 "2020-06-02T08:37:24Z")

</div>

Hi all,  
I want to make a function in my plugin.

When users use the old version plugin,  
pop up the message to remind the new version is already available.

Does anyone know how to read the version number of the plugin?

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [June 2, 2020, 1:00pm UTC](https://forums.unrealengine.com/t/read-plugin-version/466129/2 "2020-06-02T13:00:44Z")

</div>

Try this:

```
FString PluginName = "MyPlugin";
FString LatestVersion = "1.4.1";

IPluginManager& PluginManager = IPluginManager::Get();
TArray<TSharedRef<IPlugin>> Plugins = PluginManager.GetDiscoveredPlugins();
for(const TSharedRef<IPlugin>& Plugin: Plugins) {
	if (Plugin.GetName() == PluginName) {
		const FPluginDescriptor& Descriptor = Plugin->GetDescriptor();
		if (Descriptor.VersionName != LatestVersion) {
			// Invoke your update code here
		}
	}
}

```

For an example, have a look at the end of this file: [https://github.com/EpicGames/UnrealEngine/blob/f8f4b403eb682ffc055613c7caf9d2ba5df7f319/Engine/Source/Editor/ContentBrowser/Private/NativeClassHierarchy.cpp](https://github.com/EpicGames/UnrealEngine/blob/f8f4b403eb682ffc055613c7caf9d2ba5df7f319/Engine/Source/Editor/ContentBrowser/Private/NativeClassHierarchy.cpp)

---

<div class="post-metadata">

**Author:** ![DanielOrchard](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/danielorchard/32/636987_2.png) [@DanielOrchard](https://forums.unrealengine.com/u/DanielOrchard)\
**Post date:** [November 24, 2022, 10:12am UTC](https://forums.unrealengine.com/t/read-plugin-version/466129/3 "2022-11-24T10:12:35Z")

</div>

#1 result on google for this, so just to update it, here’s a UE5 version that no longer requires looping the entire plugin list:

```auto
#include "Interfaces/IPluginManager.h"

const TSharedPtr<IPlugin> Plugin = IPluginManager::Get().FindPlugin(TEXT("WRITE_PLUGIN_NAME_HERE"));
	
if (Plugin.IsValid())
	{
		return Plugin->GetDescriptor().VersionName;
	}

```
