# \[solved\] Web plugin is unvailable, message will be posted hook

**URL:** <https://forum.mattermost.com/t/solved-web-plugin-is-unvailable-message-will-be-posted-hook/7172>\
**Category:** Troubleshooting\
**Created:** [April 29, 2019, 9:19am UTC](https://forum.mattermost.com/t/solved-web-plugin-is-unvailable-message-will-be-posted-hook/7172 "2019-04-29T09:19:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![slawek367](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/slawek367/32/3151_2.png) [@slawek367](https://forum.mattermost.com/u/slawek367)\
**Post date:** [April 29, 2019, 9:19am UTC](https://forum.mattermost.com/t/solved-web-plugin-is-unvailable-message-will-be-posted-hook/7172/1 "2019-04-29T09:19:32Z")

</div>

#### Summary

registry.registerMessageWillBePostedHook is undefined, when I trying to use it in web plugin. Other registers works pretty well but when i checked registry properties it is not visible. My mattermost version is latest (5.9.1). That register is defined in mattermost documentation so i think it should be available. Anyone used it?

Here i created the issue: [https://github.com/mattermost/mattermost-plugin-sample/issues/37](https://github.com/mattermost/mattermost-plugin-sample/issues/37)

@edit  
i checked 5.10.0 mattermost version and it working here
