Display drip rule type text in admin side drip rule grid.
Hook Name: arm_change_drip_content_in_admin
Hook Type: Filter
Source: core/views/arm_drip_rules_list_records.php
Usage:
add_filter( 'arm_change_drip_content_in_admin', 'your_function', 10, 2);
function your_function($rule_text, $drip_rule) {
//$rule_text Drip Rule text
//$drip_rule Drip Rule array
if ($drip_rule['rule_type'] == 'custom_type') {
$rule_text = 'Custom Type';
}
return $rule_text;
}
Parameters:
$rule_text
Drip Rule text
$drip_rule
Drip Rule array