wp_signature_url
Filter HookDescription
Filters the URL where the signature for a file is located.Hook Information
| File Location | wp-admin/includes/file.phpView on GitHub | 
| Hook Type | Filter | 
| Line Number | 1311 | 
Hook Parameters
| Type | Name | Description | 
|---|---|---|
| false|string | $signature_url | The URL where signatures can be found for a file, or false if none are known. | 
| string | $url | The URL being verified. | 
Usage Examples
                        Basic Usage
                    
                    <?php
// Hook into wp_signature_url
add_filter('wp_signature_url', 'my_custom_filter', 10, 2);
function my_custom_filter($signature_url, $url) {
    // Your custom filtering logic here
    return $signature_url;
}
Source Code Context
                        wp-admin/includes/file.php:1311
                        - How this hook is used in WordPress core
                    
                    <?php
1306  			 * @since 5.2.0
1307  			 *
1308  			 * @param false|string $signature_url The URL where signatures can be found for a file, or false if none are known.
1309  			 * @param string $url                 The URL being verified.
1310  			 */
1311  			$signature_url = apply_filters( 'wp_signature_url', $signature_url, $url );
1312  
1313  			if ( $signature_url ) {
1314  				$signature_request = wp_safe_remote_get(
1315  					$signature_url,
1316  					array(
PHP Documentation
<?php
/**
			 * Filters the URL where the signature for a file is located.
			 *
			 * @since 5.2.0
			 *
			 * @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.
			 */
                        Quick Info
                    
                    - Hook Type: Filter
- Parameters: 2
- File: wp-admin/includes/file.php
                        Related Hooks
                    
                    Related hooks will be displayed here in future updates.
