1

We run a multi-site network instance of Wordpress at our institution. We synch our Active Directory daily in order to automatically create WP accounts for new users (e.g. basically subscribing them to our root site ourinstitution.sites.edu.

One user has created a subsite in which some of the content is public and some they wish to be only available to members of the institution.

Is there a plugin or easy fix that would automatically register a user (who already exists with an account in the network) as a subscriber of this subsite when they click on a link to this private area?

We don't want to subscriber everyone automatically. It'd be an opt-in.

Best wishes,

David

3
  • You could make a form that sends its data via POST, then use add_user_to_blog() to automatically register any user that clicked on the form's Submit button.
    – Pat J
    Aug 25, 2021 at 17:02
  • Unfortunately we can't change the underlying code. Looking for a plugin that might do the job. Thanks!
    – David G
    Aug 25, 2021 at 17:53
  • If you can't find one, you might consider writing a plugin or hiring a contractor to write one for you.
    – Pat J
    Aug 25, 2021 at 18:01

0

Browse other questions tagged or ask your own question.