• Is there a function which can be added to completely remove the option for registration?

    I want to prevent the settings checkbox being inadvertently selected.

    The best I can currently do is to hide the ‘users_can_register’ input with css and add a ‘has been disabled’ note to the label.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello gulliver,

    I saw a post in the forum where they discuss removing/overriding the section on the login page:
    https://wordpress.org/support/topic/remove-registration-link-from-wp-login-page?replies=7

    Keep in mind you can always disable registration from the Membership section of the General settings page:
    https://codex.wordpress.org/Settings_General_Screen

    Cheers,
    John-Paul

    Thread Starter gulliver

    (@gulliver)

    Thanks.

    I already have it removed from the login page.
    And disabled in settings.
    Plus, I use css to remove the checkbox option in settings (so that an inexperienced admin doesn’t inadvertently re-enable it).
    Further, I’ve added an action to restrict direct access (by directly entering the url in a browser) to the profile page at profile.php.

    I’d just prefer to remove the option entirely.

    The backstory to this is that I’m using WP with a third-party membership app. And it’s that app which creates and manages the WP users.

    I’m using WP with a third-party membership app…

    Name of plugin/App? Where did you download it from?

    Thread Starter gulliver

    (@gulliver)

    >Name of plugin/App? Where did you download it from?

    It’s ‘aMember’.
    Good app, which I’m happy to use.

    And with my described measures, whilst I can achieve what I need (stop users editing their profile info within WP, and redirect them to do it through aMember), it’s still be useful to remove any reference to it on the settings page. (And whilst I can hide the checkbox/enable with css, I can’t do similarly with the label for it.)

    And, depending on what’s involved, ‘completely remove the option for registration’ may affect the behavior of aMember and so not be appropriate. But it’d at least be good to remove any reference to it on the settings page.

    There is probably a way to unhook php functions in that plugin. But you need to work with aMember; we don’t support premium/paid plugins in these forums. These forums are for plugins available at wordpress.org/plugins/. See http://codex.wordpress.org/Forum_Welcome#Commercial_Products

    Thread Starter gulliver

    (@gulliver)

    > There is probably…

    This isn’t a third-party issue, but one of modifying a core function (user registration) of WP. Being able to remove option from settings will prevent inadvertent disabling/re-enabling.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Disable and remove registration option’ is closed to new replies.