WordPress multisite htaccess

I’ve been looking for details on why that line is suggested for a multisite install using subdomains as well. I actually question if both of these are relevant for a subdomain install: RewriteRule ^(wp-(content|admin|includes).*) $1 [L] RewriteRule ^(.*\.php)$ $1 [L] In a sub-directory install the rules are setup slightly different to strip the sub-directory name … Read more

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

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