Skip to content
This repository has been archived by the owner on Dec 5, 2018. It is now read-only.

Implement Hooks and Filters #6

Open
3 of 8 tasks
swissspidy opened this issue Mar 26, 2015 · 0 comments
Open
3 of 8 tasks

Implement Hooks and Filters #6

swissspidy opened this issue Mar 26, 2015 · 0 comments
Milestone

Comments

@swissspidy
Copy link
Contributor

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.

@swissspidy swissspidy modified the milestone: 1.1.0 Mar 26, 2015
@swissspidy swissspidy modified the milestones: 1.1.0, 2.0.0 Mar 26, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant