Add menu page on multisite

I believe you’re looking for the network_admin_menu hook. Here’s how you’d use it: add_action(‘network_admin_menu’, ‘function_name’); function function_name() { add_menu_page( “page_title”, “menu_title”, ‘capability’, ‘menu_slug’, ‘function_callback’ ); }

Register email as username

Emails can not be used as user names as wordpress uses user names by default as part of urls (for example the author page). Therefor it is not enough to let users register with email addresses, you also need to have some code to handler the URL related issues. Anyway this sounds like an XY … Read more

How to update_site_option for specific site within network?

update_site_option() updates an option that’s set for the entire network. If you’re trying to update a specific site’s option, eg blogname, you’ll need to do update_option() instead. If you’re not sure of a site’s ID, you can get its details using the site’s slug with get_blog_details(). For example, if I wanted to change the admin_email … Read more

Can wp-cli display all users and their roles across all sites in a multisite instance?

List all the admins of each site Side note: Dividing these up by site would also be handy. Let’s do that here: We can list the url of each site with: wp site list –field=url We can list all administrators of a given site with: wp user list –role=administrator –url=https://example.tld/site1 These commands can be combined … Read more