Run javascript code after wp_login hook?
I would do something like this: function wpse38285_wp_login( $user_login ) { set_transient( $user_login, ‘1’, 0 ); } add_action( ‘wp_login’, ‘wpse38285_wp_login’ ); function wpse38285_wp_footer() { global $current_user; get_currentuserinfo(); if ( ! is_user_logged_in() ) return; if ( ! get_transient( $current_user->user_login ) ) return; $js = <<<JS <script type=”text/javascript”> jQuery(‘<div />’) .html(‘<p>You are now logged in as <strong>$current_user->user_login</strong><br … Read more