How to change textarea rows height for user’s biographical Info?

Unfortunately there is no hook available to modify the HTML for the description field on the edit user page. The output is hard-coded. One workaround is to use CSS to set a minimum height for the text area. I think this is the best approach. add_action( ‘admin_print_styles-profile.php’, ‘wpse_user_description_css’ ); add_action( ‘admin_print_styles-user-edit.php’, ‘wpse_user_description_css’ ); function wpse_user_description_css() … Read more

How would I hook into `clear_auth_cookie` to return the user’s ID that’s currently being logged out?

That action doesn’t pass that data: function return_user_data_on_logout( $user ) { Here, $user will alway be undefined. Additionally, you need to tell add_action how many parameters the function takes. But.. do_action( ‘clear_auth_cookie’ ); No information is passed to begin with, that’s not how this particular event/action works. So how do we get the current user … Read more