Add a user_new_form hook, with context. props johnjamesjacoby, strangerstudios, jeremyfelt, DrewAPicture. fixes #18709.

Built from https://develop.svn.wordpress.org/trunk@25629


git-svn-id: http://core.svn.wordpress.org/trunk@25546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí
2013-09-26 01:48:10 +00:00
parent 82904baffd
commit 6cee949cab
2 changed files with 24 additions and 1 deletions

View File

@@ -99,6 +99,10 @@ if ( isset( $add_user_errors ) && is_wp_error( $add_user_errors ) ) { ?>
<td colspan="2"><?php _e( 'Username and password will be mailed to the above email address.' ) ?></td>
</tr>
</table>
<?php
//duplicate_hook
do_action( 'user_new_form', 'add-new-user' );
?>
<?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?>
<?php submit_button( __('Add User'), 'primary', 'add-user' ); ?>
</form>