session = $session; } public function register_hook() { add_action( 'wp_logout', array( $this->session, 'destroy' ) ); } }