WordPress.org

Make WordPress Core

Changeset 36556


Ignore:
Timestamp:
02/17/2016 07:14:50 PM (5 years ago)
Author:
jeremyfelt
Message:

Multisite: Add a hook to the end of the network's Add New User form.

The network_user_new_form action can be used to extend the new user form.

Props ptahdunbar.
Fixes #15389.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/user-new.php

    r34265 r36556  
    107107        </tr>
    108108    </table>
    109     <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ); ?>
    110     <?php submit_button( __('Add User'), 'primary', 'add-user' ); ?>
     109    <?php
     110    /**
     111     * Fires at the end of the new user form in network admin.
     112     *
     113     * @since 4.5.0
     114     */
     115    do_action( 'network_user_new_form' );
     116
     117    wp_nonce_field( 'add-user', '_wpnonce_add-user' );
     118    submit_button( __('Add User'), 'primary', 'add-user' );
     119    ?>
    111120    </form>
    112121</div>
Note: See TracChangeset for help on using the changeset viewer.