What is a Hook?

Hooks are one of the most powerful concepts behind Zenbership and understanding them will help you truly unlock the potential of the application.

Basically, a hook is a programmatic event that is triggered when a core function of the application either starts to run or stops running. For example you may want to e-mail someone when a new member registers, or you may want to execute a script which talks to an external API when someone updates their membership details. Hooks make all of this possible.

Types of Hooks

While there are several types of hooks, this documentation, being focussed on extending the program, will only focus on the "PHP Code Execution" type of hook.

Important Things To Remember

Last modified 3 months ago.