wp_signature_softfail filter-hookWP 5.2.0

Filters whether Signature Verification failures should be allowed to soft fail.

WARNING: This may be removed from a future release.

Usage

add_filter( 'wp_signature_softfail', 'wp_kama_signature_softfail_filter', 10, 2 );

/**
 * Function for `wp_signature_softfail` filter-hook.
 * 
 * @param bool   $signature_softfail If a softfail is allowed.
 * @param string $url                The url being accessed.
 *
 * @return bool
 */
function wp_kama_signature_softfail_filter( $signature_softfail, $url ){

	// filter...
	return $signature_softfail;
}
$signature_softfail(true|false)
If a softfail is allowed.
$url(string)
The url being accessed.

Changelog

Since 5.2.0 Introduced.

Where the hook is called

download_url()
wp_signature_softfail
wp-admin/includes/file.php 1292
apply_filters( 'wp_signature_softfail', true, $url )

Where the hook is used in WordPress

Usage not found.