mycred_setup_hooks

Description

This filter allows you to add custom hooks or remove built-in ones.

Available since version 1.0.1

Parameters

Param Type Required Description
$hooks array Yes

An associated array of installed hooks.

$point_type string No

The point type being rendered when the filter fires. This can be used which hooks are available for each point type you might have installed.

Used By

Package Prio. Description
mycred/core 10 Used by the myCRED_Hooks_Module class.

Examples

Example 1: Add a custom hook.

Example 2: Remove certain hooks from being usable for custom point types.