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

In this article

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

VersionDescription
2.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.