policies($this->get_access_level())->params( 'redirect:on:access-denied:*' ); foreach($params as $key => $value) { $bits = explode(':', $key); $area = $bits[3]; // Should be either frontend, backend or API if (is_array($value)) { $result[$area] = $manager->policy->convert_statement_redirect($value); } } return apply_filters('aam_apply_policy_filter', $result, $this); } }