wp_trusted_keys filter-hookWP 5.2.0

Filters the valid signing keys used to verify the contents of files.

Usage

add_filter( 'wp_trusted_keys', 'wp_kama_trusted_keys_filter' );

/**
 * Function for `wp_trusted_keys` filter-hook.
 * 
 * @param string[] $trusted_keys The trusted keys that may sign packages.
 *
 * @return string[]
 */
function wp_kama_trusted_keys_filter( $trusted_keys ){

	// filter...
	return $trusted_keys;
}
$trusted_keys(string[])
The trusted keys that may sign packages.

Changelog

Since 5.2.0 Introduced.

Where the hook is called

wp_trusted_keys()
wp_trusted_keys
wp-admin/includes/file.php 1526
return apply_filters( 'wp_trusted_keys', $trusted_keys );

Where the hook is used in WordPress

Usage not found.