Hiding an added admin page menu using css

WordPress already takes care of that for you. The third argument in your add_menu_page function, which reads edit_themes is the capability required to access the page. If the user doesn’t have that capability he can’t access the page, so WordPress won’t show him that option on the menu. Clever, no? Now, from the code you … Read more

register_taxonomy – show in admin menu, but not on post type (edit) screen

As per le comment. function remove_artist_meta() { remove_meta_box( ‘{taxonomy name}’, ‘post’, ‘side’ ); } add_action( ‘admin_menu’ , ‘remove_artist_meta’ ); The Admin menu has been always difficult to deal with, some help here would be nice: http://core.trac.wordpress.org/ticket/12718 But I think that this could be added a a parameter to register_taxonomy. http://core.trac.wordpress.org/ticket/21543

Grant access to admin menu?

I am not claiming this is a canonical list but the user related capabilities I see are: add_users create_users delete_users edit_users list_users promote_users remove_users I got this working with only list_users and edit_users. I did test all combinations of those, just a few obvious ones. Of course, you may want more capabilities than that.

Remove the theme info from main dashboard screen- not appearance

You can remove this via javascript. The class of the theme informations is versions and the ID of this Meta Box is dashboard_right_now. The follow screenshot demonstrate how I find this class and id via Crome Webinspector. add_action( ‘admin_footer-index.php’, ‘fb_remove_comments_areas’ ); function () { ?> <script type=”text/javascript”> //<![CDATA[ jQuery(document).ready( function($) { $( ‘#dashboard_right_now .versions’ ).remove(); … Read more

Reference external file as a function

You can’t. Create a function that loads that file: function load_admin_page_file() { require ‘admin-members.php’; } Then use that function name as callback argument. In PHP 5.3 you can use a lambda: add_menu_page( ‘Members’, ‘Members’, ‘manage_options’, ‘members’, function() { require ‘admin-members.php’; } );

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)