Action hook 'network_user_new_form'

in WP Core File wp-admin/network/user-new.php at line 158

View Source

network_user_new_form

Action Hook
Description
Fires at the end of the new user form in network admin.

Hook Information

File Location wp-admin/network/user-new.php View on GitHub
Hook Type Action
Line Number 158

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into network_user_new_form
add_action('network_user_new_form', 'my_custom_function');

function my_custom_function() {
    // Your custom code here
}

Source Code Context

wp-admin/network/user-new.php:158 - How this hook is used in WordPress core
<?php
 153  	/**
 154  	 * Fires at the end of the new user form in network admin.
 155  	 *
 156  	 * @since 4.5.0
 157  	 */
 158  	do_action( 'network_user_new_form' );
 159  
 160  	wp_nonce_field( 'add-user', '_wpnonce_add-user' );
 161  	submit_button( __( 'Add User' ), 'primary', 'add-user' );
 162  	?>
 163  	</form>

PHP Documentation

<?php
/**
	 * Fires at the end of the new user form in network admin.
	 *
	 * @since 4.5.0
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-admin/network/user-new.php
Related Hooks

Related hooks will be displayed here in future updates.