Support » Plugins and Hacks » WooDiscuz - WooCommerce Comments » Login link points to wp-login.php

  • We are testing this plugin on a multi-site install. The login link on the comment points to wp-login.php while other login links for logging in point to /my-account/ instead. The problem with this is the wp-login.php link takes the user to the network domain in a multi-site install instead of the login page for the child site.

    Example…

    User clicks login link in other areas, they get this page:
    http://site-name.com/my-account/ (preferred destination)

    User clicks login link in this plugin they are taken here:
    http://site-name.com/wp-admin.php – which immediately redirects to here:
    http://network-domain.com/site-name/wp-login.php (not good)

    Not sure if this is because registration is disabled for the network at the moment. Is that what would cause this? Or is this plugin not multi-site compatible?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Is there no support for this plugin?

    Plugin Contributor gVectors Team

    (@gvectors-team)


    This is WordPress core login URL, it can’t be changed from WooDiscuz. Id recommend to use WordPress hooks:

    add_filter( 'login_url', 'my_login_linkchanger');
    function my_login_linkchanger( $link ) {
      return home_url( '/your-login-page-slug/');
    }

    So what is the login process supposed to be with this plugin on a multi-site installation then, or is it not compatible with multi-site? How do I edit the configuration so that the user never sees the network domain and stays on the site within the network domain? Or do I have to customize the WP files to make it work?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.