apply_filters( 'llms_secure_strings', string[] $secure_strings, string $handle )

Filters a list of “secure” strings which should be anonymized prior to logging.


Description Description

A plugin or theme that might log potentially sensitive data (such as API keys), the API key strings can be registered with this filter to automatically be anonymized if they are found within logs.


Top ↑

Parameters Parameters

$secure_strings

(string[]) An array of secure strings that should be anonymized.

$handle

(string) The log handle. This can be used to only register strings for a specific log file.


Top ↑

Source Source

File: includes/functions/llms.functions.log.php

View on GitHub



Top ↑

Changelog Changelog

Changelog
Version Description
6.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.