wp_signature_url filter-hookWP 5.2.0

Filters the URL where the signature for a file is located.

Usage

add_filter( 'wp_signature_url', 'wp_kama_signature_url_filter', 10, 2 );

/**
 * Function for `wp_signature_url` filter-hook.
 * 
 * @param false|string $signature_url The URL where signatures can be found for a file, or false if none are known.
 * @param string       $url           The URL being verified.
 *
 * @return false|string
 */
function wp_kama_signature_url_filter( $signature_url, $url ){

	// filter...
	return $signature_url;
}
$signature_url(false|string)
The URL where signatures can be found for a file, or false if none are known.
$url(string)
The URL being verified.

Changelog

Since 5.2.0 Introduced.

Where the hook is called

download_url()
wp_signature_url
wp-admin/includes/file.php 1260
$signature_url = apply_filters( 'wp_signature_url', $signature_url, $url );

Where the hook is used in WordPress

Usage not found.