WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
This hook occurs 2 times in this file.
Line | Code |
---|---|
2427 | /** |
2428 | * Filters the WordPress salt. |
2429 | * |
2430 | * @since 2.5.0 |
2431 | * |
2432 | * @param string $cached_salt Cached salt for the given scheme. |
2433 | * @param string $scheme Authentication scheme. Values include 'auth', |
2434 | * 'secure_auth', 'logged_in', and 'nonce'. |
2435 | */ |
2436 | return apply_filters( 'salt', $cached_salts[ $scheme ], $scheme ); |
2437 | } |
2438 |
|
2439 | static $duplicated_keys; |
2440 | if ( null === $duplicated_keys ) { |
2441 | $duplicated_keys = array( |
2442 | 'put your unique phrase here' => true, |
2443 | ); |
2444 |
|
2445 | /* |
Line | Code |
2492 | update_site_option( 'secret_key', $values['key'] ); |
2493 | } |
2494 | } |
2495 | $values['salt'] = hash_hmac( 'md5', $scheme, $values['key'] ); |
2496 | } |
2497 |
|
2498 | $cached_salts[ $scheme ] = $values['key'] . $values['salt']; |
2499 |
|
2500 | /** This filter is documented in wp-includes/pluggable.php */ |
2501 | return apply_filters( 'salt', $cached_salts[ $scheme ], $scheme ); |
2502 | } |
2503 | endif; |
2504 |
|
2505 | if ( ! function_exists( 'wp_hash' ) ) : |
2506 | /** |
2507 | * Gets hash of given string. |
2508 | * |
2509 | * @since 2.0.3 |
2510 | * |