wp_trusted_keys WordPress Filter Hook
The wp_trusted_keys hook is one of the most important security hooks in WordPress. It allows you to specify which cryptographic keys are trusted by your site. These keys are used to verify the authenticity of signed requests, such as plugin and theme updates. By default, only the official WordPress cryptographic keys are trusted. However, you can use this hook to specify additional keys that you trust.
apply_filters( 'wp_trusted_keys', string[] $trusted_keys ) #
Filters the valid signing keys used to verify the contents of files.
Parameters
- $trusted_keys
(string[])The trusted keys that may sign packages.
Source
Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |