W3cubDocs

/WordPress

apply_filters( ‘salt’, string $cached_salt, string $scheme )

Filters the WordPress salt.

Parameters

$cached_saltstring
Cached salt for the given scheme.
$schemestring
Authentication scheme. Values include 'auth', 'secure_auth', 'logged_in', and 'nonce'.

Source

return apply_filters( 'salt', $cached_salts[ $scheme ], $scheme );

Changelog

Version Description
2.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/salt