To add features to a program, especially through the use of hooks.
"Extend" is very often used in the phrase "extend the functionality of a program."
Plug-ins are one form of extension.