wp_signature_softfail
Filter HookDescription
Filters whether Signature Verification failures should be allowed to soft fail. WARNING: This may be removed from a future release.Hook Information
File Location |
wp-admin/includes/file.php
View on GitHub
|
Hook Type | Filter |
Line Number | 1343 |
Hook Parameters
Type | Name | Description |
---|---|---|
bool
|
$signature_softfail
|
If a softfail is allowed. |
string
|
$url
|
The url being accessed. |
Usage Examples
Basic Usage
<?php
// Hook into wp_signature_softfail
add_filter('wp_signature_softfail', 'my_custom_filter', 10, 2);
function my_custom_filter($signature_softfail, $url) {
// Your custom filtering logic here
return $signature_softfail;
}
Source Code Context
wp-admin/includes/file.php:1343
- How this hook is used in WordPress core
<?php
1338 * @since 5.2.0
1339 *
1340 * @param bool $signature_softfail If a softfail is allowed.
1341 * @param string $url The url being accessed.
1342 */
1343 apply_filters( 'wp_signature_softfail', true, $url )
1344 ) {
1345 $signature_verification->add_data( $tmpfname, 'softfail-filename' );
1346 } else {
1347 // Hard-fail.
1348 unlink( $tmpfname );
PHP Documentation
<?php
/**
* Filters whether Signature Verification failures should be allowed to soft fail.
*
* WARNING: This may be removed from a future release.
*
* @since 5.2.0
*
* @param bool $signature_softfail If a softfail is allowed.
* @param string $url The url being accessed.
*/
Quick Info
- Hook Type: Filter
- Parameters: 2
- File: wp-admin/includes/file.php
Related Hooks
Related hooks will be displayed here in future updates.