customizing the registration form without getting problems with updates

Hi,
I am using the subscription form in the text-widget in a sidebar.
How do I modify the form without the danger of it getting over-written by plugin update?
Thanks,

  • Mason

    Hiya

    You'd have to customize the registration form in that case. You can take a look at /membership/membershipincludes/includes/registration.form.php to get an idea for how the registration form is handled.

    There's plenty of places to filter:
    signup_hidden_fields
    membership_subscription_form_registration_presubmit_content
    signup_extra_fields

    You could also look at /membership/membershipincludes/plugins/simple.invitecodes.php for an example of how to do it via a plugin.

    You might also want to take a look at the subscription form at:
    membership/membershipincludes/includes/subscription.form.php

    There are the following actions you can tie into to make things simpler:
    membership_subscription_form_before_subscriptions
    membership_subscription_form_before_paid_subscriptions
    membership_subscription_form_after_paid_subscriptions
    membership_subscription_form_after_subscriptions

    Hope that helps!

  • Mason

    Hiya,

    As we haven't heard back from you we're going to assume the problem was sorted out and mark this ticket as resolved.

    If it wasn't resolved, or you have any more questions related to this thread please feel free to post them below and tick the 'Mark as Not Resolved (re-open)' box below the post area (or else we'll miss it!)

    Otherwise, thanks for using the forums, and for being a member of WPMU DEV, it's a pleasure to help you out and we look forward to being of assistance in the future.

    Thanks!