aam_policy_condition_result_filter

Purpose

Evaluate a custom policy condition type.

Callback

Example

add_filter('aam_policy_condition_result_filter', function ($result, $type, $conditions, $args) {
    if ($type === 'myapp_is_weekday') {
        return (int) wp_date('N') <= 5;
    }
    return $result;
}, 10, 4);

Evaluates a custom weekday condition and preserves the result for other condition types.

See the complete hook list.