Hot answers tagged

3

This doesn't sound like something coming from WordPress core. Quick search online got pretty slim results, but it seems to be asscociated with WP All Import plugin.


2

get_option is a per sub-site function. In other words it gives you only the value of the option in the sub-site. If you want to have a netwrok wide option you should use get_site_option and update_site_option. You can also query an option from a specific sub-site by using get_blog_option and passing as parameter to it the main sub-site id, but in my ...


2

As far as I remember the users in multisite are shared. They are tracked in one database table and use same cookie for authentication. The more practical approach is to track not merely login status, but capabilities. Users should be exposed to actions/information that they can perform/see, according to their Role on specific site. You don't cover your use ...


1

I believe you're looking for the network_admin_menu hook. The Codex page for network_admin_menu has the following example: add_action('network_admin_menu', 'function_name'); function function_name() { add_menu_page( "page_title", "menu_title", 'capability', 'menu_slug', 'function_callback' ); }


1

There is actually nothing unique about setting multisite on XAMPP, all you need to do is properly configure the webserver as a proper webserver, and skip the lazy practice of using localhost as your site domain. Select some random domain you are not likely to use in your web use, edit your hosts file to point that domain to 127.0.0.1, and set the vhost in ...


1

I'm not completly sure but as far as I know that should work with the plugin "WordPress MU Domain Mapping"


1

WordPress's authentication system is made up of pluggable functions, which means that you can write a plugin that has a function named, say, wp_authenticate(), and your site will use your wp_authenticate() function instead of the native WordPress one. Your comment about is_user_logged_in() (on your original post) is obviated by the fact that ...


1

Is using Auth0 (http://www.auth0.com) maybe an option for you? They have a very good Wordpress plugin. I think you could integrate your system and do a Single Sign On (SSO) using the plugin. I think it's a better option for you to do some stuff on your system to integrate (since you know the system and can probably be more productive), using this ...


1

There are a few options for this: Premium Plugins: This works well to help multisite set ups hide sites and gives you a few ways to do it - but it is not free: https://premium.wpmudev.org/project/sitewide-privacy-options-for-wordpress-mu/ a good "coming soon" and "maintenance mode" plugin: https://www.seedprod.com/ Open Source Plugins: ...


1

I know this is an old question but get_current_site_name() has been deprecated; use this get_current_site()->site_name or get_current_site()->domain for the domain without the text "Sites" at the end.



Only top voted, non community-wiki answers of a minimum length are eligible