Plugin event triggers

Each plugin type has its own set of events that trigger these plugins to execute. Each plugin can use one or more event triggers but there is no need to use all the event triggers available, just pick out the ones you need. You also have the freedom to create your own custom plugin event triggers in your components, however, that is also outside the scope of this book. The following table summarizes the types of plugins available and their respective event triggers:

Plugin type

Event trigger

Authentication

onUserAuthenticate

onUserAuthorisationFailure

Captcha

onCheckAnswer

onDisplay

onInit

Content

onContentAfterDelete

onContentAfterDisplay

onContentAfterSave

onContentAfterTitle

onContentBeforeDelete ...

Get Learning Joomla! 3 Extension Development - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.