# Map action to Apply button in Editor toolbar

**URL:** <https://forums.unrealengine.com/t/map-action-to-apply-button-in-editor-toolbar/428288>\
**Category:** UI\
**Tags:** unreal-engine, action-mappings, editor, UI, Plugins, question, CPP\
**Created:** [June 28, 2018, 11:05am UTC](https://forums.unrealengine.com/t/map-action-to-apply-button-in-editor-toolbar/428288 "2018-06-28T11:05:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisHekmanOTOY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ChrisHekmanOTOY](https://forums.unrealengine.com/u/ChrisHekmanOTOY)\
**Post date:** [June 28, 2018, 11:05am UTC](https://forums.unrealengine.com/t/map-action-to-apply-button-in-editor-toolbar/428288/1 "2018-06-28T11:05:25Z")

</div>

For my plugin, I want to call a function when the user presses the “Apply” button in the material editor.  
I cant find a callback or hook for this. Is there a way to add functions to buttons that have already been added to the toolbar? Or is there another way for me to do this?
