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 |
---|---|
2468 | /** |
2469 | * Filters the WordPress salt. |
2470 | * |
2471 | * @since 2.5.0 |
2472 | * |
2473 | * @param string $cached_salt Cached salt for the given scheme. |
2474 | * @param string $scheme Authentication scheme. Values include 'auth', |
2475 | * 'secure_auth', 'logged_in', and 'nonce'. |
2476 | */ |
2477 | return apply_filters( 'salt', $cached_salts[ $scheme ], $scheme ); |
2478 | } |
2479 |
|
2480 | static $duplicated_keys; |
2481 | if ( null === $duplicated_keys ) { |
2482 | $duplicated_keys = array( |
2483 | 'put your unique phrase here' => true, |
2484 | ); |
2485 |
|
2486 | /* |
Line | Code |
2568 | update_site_option( 'secret_key', $values['key'] ); |
2569 | } |
2570 | } |
2571 | $values['salt'] = hash_hmac( 'md5', $scheme, $values['key'] ); |
2572 | } |
2573 |
|
2574 | $cached_salts[ $scheme ] = $values['key'] . $values['salt']; |
2575 |
|
2576 | /** This filter is documented in wp-includes/pluggable.php */ |
2577 | return apply_filters( 'salt', $cached_salts[ $scheme ], $scheme ); |
2578 | } |
2579 | endif; |
2580 |
|
2581 | if ( ! function_exists( 'wp_hash' ) ) : |
2582 | /** |
2583 | * Gets hash of given string. |
2584 | * |
2585 | * @since 2.0.3 |
2586 | * |