Skip to main content

clear

Method
This is a method of the HookRegistry class in the registry module.
Clear all hooks or hooks for a specific event.

Signature

def clear(event: Optional[HookEvent]) -> Any

Parameters

event
Optional
Optional event to clear hooks for

Returns

Returns
Any
The result of the operation.