wp_signature_softfail хук-фильтрWP 5.2.0

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

WARNING: This may be removed from a future release.


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;
If a softfail is allowed.
The url being accessed.

Список изменений

С версии 5.2.0 Введена.

Где вызывается хук

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

Где используется хук в WordPress

Использование не найдено.