Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: session_token_manager

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

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
223
224      /**
225       * Destroy all session tokens for all users.
226       *
227       * @since 4.0.0
228       * @access public
229       * @static
230       */
231      final public static function destroy_all_for_all_users() {
232           $manager = apply_filters( 'session_token_manager', 'WP_User_Meta_Session_Tokens' );
233           call_user_func( array( $manager, 'drop_sessions' ) );
234      }
235
236      /**
237       * Retrieve all sessions of a user.
238       *
239       * @since 4.0.0
240       * @access public
241       *