Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author stenberg.me

    (@stenbergme)

    Hi,

    Great to hear that you like the plugin!

    Yes, this is a bit tricky, what you will have to do is to add something like this to your code:

    /**
     * Change endpoint if we are on something else then the master site.
     *
     * @param string $endpoint
     * @return string
     */
    function my_new_endpoint( $endpoint ) {
    	$site = get_blog_details();
    	return $endpoint . $site->path;
    }
    
    add_filter( 'sme_endpoint', 'my_new_endpoint' );

    Thanks for reporting this issue, I will try to handle this automatically in upcoming versions of the plugin so there is no need for adding custom code.

    Hope this solves it!

    Thread Starter cjmaio

    (@cjmaio)

    That makes sense!

    I actually made a change to include a settings page, where you can set the endpoint on a per-site basis… as well as set the secret key on a per-site basis.

    I was going to commit it to GitHub but it looks like both the develop and master branch are different from what is on www.remarpro.com – and it seems like neither are stable (they both fail to work at the preflight stage).

    I’d be more than happy to submit a pull request with my changes, if you let me know which one is the ‘stable’ version?

    Plugin Author stenberg.me

    (@stenbergme)

    Thanks, contributions are gladly accepted ??

    I’m preparing a new release of the plugin on www.remarpro.com, the latest code is on GitHub. Master should be stable, pushed some code to it recently.

    Could you take a look in the log and see if anything shows up during pre-flight?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using in a multi-site environment’ is closed to new replies.