set an action to execute on post/page publish/update