87 reputation
6
bio website
location
age
visits member for 2 years, 1 month
seen Dec 17 '12 at 22:49

Nov
21
comment JQuery prepend a function
it didn't work: function profile_script() { global $current_user; get_currentuserinfo(); echo '<div id="profileinmenu">'; echo get_avatar( $current_user->ID, 64 ); echo '</div>'; echo '<script type="text/javascript"> /* <![CDATA[ */ jQuery(document).ready(function(){ var menuprofile = jQuery('#profileinmenu'); jQuery("#adminmenu").prepend(menuprofile); }); /* ]]> */ </script>'; } add_action( "admin_footer", 'profile_script' );
Nov
21
comment JQuery prepend a function
the menu will not collapse due to the current user profile avatar and info being inside the admin menu.
Nov
21
comment JQuery prepend a function
well you caught me I don't know php, jquery, and ajax well enough. I get what you are saying about the submenu_page hook instead of admin_menu but the what happens to the profile function?
Nov
21
answered Add header and footer to WP backend
Nov
21
revised JQuery prepend a function
deleted 9 characters in body
Nov
21
asked JQuery prepend a function
Oct
29
awarded  Editor
Oct
29
answered Hide extra menus from Wordpress Dashboard