How can I disable sorting/dragging of a menu item in the custom menu admin?

The following does the trick: add_action( ‘admin_footer-nav-menus.php’, ‘block_sortables_wpse_90610’ ); function block_sortables_wpse_90610() { ?> <script type=”text/javascript”> jQuery(document).ready(function($) { $(“dt.menu-item-handle”).sortable({ disabled: false }); }); </script> <?php } This also works: sortable(false). Docs: http://api.jqueryui.com/sortable/#option-disabled

Custom Div with links on Admin Bar

I think you need to use “global $current_user;” in your function to get the details of $current_user and global $wp_admin_bar; for admin bar. This is how I managed to get the role of the current user and change the URL from admin depending on role (It doesn’t solve your issue, but maybe you find it … 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)