mycred_affiliate_key

Description

This filter allows you to adjust the affiliate referral key that the hook uses. By default this is mref.

Available since version 1.3

Parameters

Param Type Required Description
$key string Yes

The key. Defaults to mref.

$hook obj No

The hook object.

Used By

Package Prio. Description
Not used by any built-in package.

Examples

Example 1: Change the affiliate key in myCRED to “affiliate_id“ instead of “mref“.

Example 2: Change the affiliate key only for a custom point type. Keep the default one for the default point type.