mycred_central_banking_ignore

Description

Used by the central banking service in the Banking add-on, this filter allows you to inform the add-on which references it should ignore. By default, transfers and interest payouts are ignored by the central bank, preventing large number of log entries to be saved with each event.

Available since version 1.5.2

Parameters

Param Type Required Description
$references array Yes

An Array of references that should be ignored by the central bank. Defaults to: interest, recurring_payout and transfer.

Used By

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

Examples

Example 1: Add the custom reference “gift“ to the list.

function mycred_pro_add_bank_exception( $references ) {

	$references[] = 'gift';
	return $references;

}
add_filter( 'mycred_central_banking_ignore', 'mycred_pro_add_bank_exception' );