Possible to enqueue scripts and CSS to Multisite Network dashboard?

You can use the global variable $current_screen. It has the property is_network, with a boolean value, that indicates if we are in /wp-admin/network/ or not. add_action( ‘admin_print_scripts’, ‘network_scripts_wpse_91699’ ); function network_scripts_wpse_91699() { global $current_screen; if( !$current_screen->is_network ) return; wp_register_script( ‘test’, plugins_url( ‘test.js’, __FILE__) ); wp_enqueue_script( ‘test’ ); } This action hook can also be used … Read more

How to create a custom template to admin dashboard

Codex has documentation on creating custom login pages – Customize Login Form > Make Custom Login Page, using wp_login_form() function. This should load everything necessary to log user in. However, unlike login, replacing admin would be much more involved and have many approaches. Typically to access admin function in non-admin context admin PHP files have … Read more

How can I change a submenu-item in the WordPress-dashboard to a mainmenu-item?

At first you have to remove the submenu and then add it again. The code should look something like this: add_action( ‘admin_menu’, ‘register_my_custom_menu_page’ ); function register_my_custom_menu_page( ) { remove_submenu_page( ‘themes.php’,’nav-menus.php’) ; add_menu_page( ‘Menus’, ‘menu’, ‘manage_options’, ‘nav-menus.php’ ); } See the WordPress Codex

Dashboard Widgets – Add Admin Page With Same Functionality

I guess “easy” is a relative term. Yes, you can create your own. For adding an admin page there are a glut of tutorials out there. This one works (and has some other info you might need) http://wp.smashingmagazine.com/2011/03/08/ten-things-every-wordpress-plugin-developer-should-know/. Search for “Add Your Own Settings Page or Admin Menu” on the page. jQuery UI is loaded … Read more

Customize the Dashboard Menu Editor

I found the answer after I typed out the question so I’ll post it at the same time. The solution is to set the show_in_nav_menus option to false when registering the Custom Post Type. http://codex.wordpress.org/Function_Reference/register_post_type show_in_nav_menus (boolean) (optional) Whether post_type is available for selection in navigation menus. Default: value of public argument

Multsite redirecting to the main site

Make sure you’ve set up your rewrite rules in your .htaccess file. The Multisite rules are different from the default WordPress rules. If this is an up-to-date version of WordPress, your .htaccess rewrite rules should look like this: Subdirectory RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] # add a trailing slash to /wp-admin RewriteRule … Read more

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