Giter Site home page Giter Site logo

wearerequired / simple-user-adding Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 3.0 355 KB

A WordPress plugin that makes adding new users to your site easier than ever.

License: GNU General Public License v2.0

JavaScript 17.87% Shell 5.34% PHP 75.90% CSS 0.89%
php user-management wordpress wordpress-plugin wp-admin wp-plugin

simple-user-adding's People

Contributors

ocean90 avatar swissspidy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

simple-user-adding's Issues

Implement Hooks and Filters

The original user-new.php script has lots of important filters and hooks. We need feature parity here to not break other plugins.

Hooks (both run twice for multisite and normal sites):

  • user_new_form_tag — Fires inside the adduser form tag.
  • user_new_form — Fires at the end of the new user form.

Applied Filters:

  • show_password_fields — not needed in our case

Multisite only:

  • pre_user_login — Filter the username before it is added to the site.
  • autocomplete_users_for_site_admins — Filter whether to enable user auto-complete for non-super admins in Multisite.

Added Filters (esp. for Multisite):

  • wpmu_signup_user_notification_email — Changes the notification email text
  • wpmu_signup_user_notification — Disable confirmation mail
  • wpmu_welcome_user_notification — Disable welcome mail

For Multisite support, see #4.

Consolidate first and last name fields

If we add more fields like in #8, we need some more space. The first and last name fields could probably fit on 1 line.

We just need to make sure it's understandable. Perhaps float label pattern is needed, but I think two simple fields (with placeholders?) next to each other would suffice.

Multisite support

The original user-new.php script has lots of functionality, especially for multisite (where you can promote users, etc.). We need feature parity.

Perhaps we should split this form in a separate file to keep things clean. Let's see where we can improve things on multisite.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.