Refer to example of good way to add pre/post hooks to core
Created by: seancolsen
@seamuslee001 requested this.
Note: I felt it was best to point people directly to the function instead of embedding the code, since it needs to get inserted into the Dev Guide in two places.