Can a Plugin Override New User Default Role Type

You can use the user_registration action to set a custom role directly after wp_insert_user() has been called. add_action(‘user_register’, ‘foo_set_new_user_role’, 9999, 1); function foo_set_new_user_role($user_id){ $user = new WP_User( $user_id ); $user->set_role(‘your_new_role’); } You can also use the action profile_update for just that, profile updates. It takes two parameters $user_id and $old_user_data. Hope this helps you out.

Problem with context in multisite – getting main site data in every blog (get_pages())

The way you are doing this is not correct. Two possibilities: 1) Create a Dashboard Widget to display the information For the Network Dashboard, but illustrates well: How to Display Network Post Count? Minimal widget: add_action(‘wp_dashboard_setup’, ‘wpse_60096_dashboard_widget’); function wpse_60096_dashboard_widget() { if( current_user_can( ‘activate_plugins’ ) ) wp_add_dashboard_widget( ‘wpse_60096’, ‘Site Pages’, ‘wpse_60096_add_widget_content’ ); } function wpse_60096_add_widget_content() { … Read more