WordPress action hook · part of WordPress core
user_new_form_tag
A WordPress core action that 5 plugins also fire themselves, running on 45K+ sites between them.
“Fires inside the adduser form tag.”
How to use user_new_form_tag
It's an action: your callback runs at that point. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'user_new_form_tag', function() {
// Your code runs here.
}, 10, 1 );Argument names come from Simple Membership's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
This hook is fired by WordPress core too. Official reference on developer.wordpress.org →
5 plugins that fire user_new_form_tag
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Simple Membership40,000+ installs
do_action( 'user_new_form_tag' )views/admin_add.php:8 -
Sliced Invoices4,000+ installs
do_action( 'user_new_form_tag' )admin/class-sliced-admin.php:1671 -
wpDirAuth500+ installs
do_action( 'user_new_form_tag' )wpDirAuth.php:2059 -
Court Reservation80+ installs
do_action( 'user_new_form_tag' )admin/partials/courtres-user.php:412 -
Loginer20+ installs
do_action( 'user_new_form_tag' )public/partials/user-registration-form.php:19
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.