Do you know what actions are? You can only apply actions to objects in WED, not functions.

Read the lite-c workshops (download page) there are some examples on how to create actions and apply them in WED.