wp_signature_hosts filter-hookWP 5.2.0

Filters the list of hosts which should have Signature Verification attempted on.

Usage

add_filter( 'wp_signature_hosts', 'wp_kama_signature_hosts_filter' );

/**
 * Function for `wp_signature_hosts` filter-hook.
 * 
 * @param string[] $hostnames List of hostnames.
 *
 * @return string[]
 */
function wp_kama_signature_hosts_filter( $hostnames ){

	// filter...
	return $hostnames;
}
$hostnames(string[])
List of hostnames.

Changelog

Since 5.2.0 Introduced.

Where the hook is called

download_url()
wp_signature_hosts
wp-admin/includes/file.php 1264
$signed_hostnames = apply_filters( 'wp_signature_hosts', array( 'wordpress.org', 'downloads.wordpress.org', 's.w.org' ) );

Where the hook is used in WordPress

Usage not found.