wp_signature_hosts
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
wp-admin/includes/file.php 1282
$signed_hostnames = apply_filters( 'wp_signature_hosts', array( 'wordpress.org', 'downloads.wordpress.org', 's.w.org' ) );