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.


Top ↑

Source

File: wp-admin/includes/file.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.