advice-add

advice-add is a compiled Lisp function in `nadvice.el'.

(advice-add SYMBOL WHERE FUNCTION &optional PROPS)

Like `add-function' but for the function named SYMBOL.
Contrary to `add-function', this will properly handle the cases where SYMBOL
is defined as a macro, alias, command, ...