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 |
---|---|
41 | final public static function get_instance( $user_id ) { |
42 | /** |
43 | * Filter the session token manager used. |
44 | * |
45 | * @since 4.0.0 |
46 | * |
47 | * @param string $session Name of class to use as the manager. |
48 | * Default 'WP_User_Meta_Session_Tokens'. |
49 | */ |
50 | $manager = apply_filters( 'session_token_manager', 'WP_User_Meta_Session_Tokens' ); |
51 | return new $manager( $user_id ); |
52 | } |
53 |
|
54 | /** |
55 | * Hashes a session token for storage. |
56 | * |
57 | * @since 4.0.0 |
58 | * @access private |
59 | * |
Line | Code |
205 |
|
206 | /** |
207 | * Destroy all session tokens for all users. |
208 | * |
209 | * @since 4.0.0 |
210 | * @access public |
211 | * @static |
212 | */ |
213 | final public static function destroy_all_for_all_users() { |
214 | $manager = apply_filters( 'session_token_manager', 'WP_User_Meta_Session_Tokens' ); |
215 | call_user_func( array( $manager, 'drop_sessions' ) ); |
216 | } |
217 |
|
218 | /** |
219 | * Retrieve all sessions of a user. |
220 | * |
221 | * @since 4.0.0 |
222 | * @access public |
223 | * |