Fixes #4529 adds ajax plugin hook