mycred_get_module

Description

This function  will return a specific myCRED Module object.

Available since version 1.7.3

Returns

(bool | object) Returns the module object or FALSE if the module is not found.

Parameters

Param Type Required Description
function mycred_get_module(
$module string Yes

The module ID.

$type string Yes

If the module supports multiple point types, you can use this to get the module under a specific point type. If the module however only supports one type, the correct value would be solo.

) { ... }

Examples

No example found.