user_new_form хук-событиеWP 3.7.0

Fires at the end of the new user form.

Passes a contextual string to make both types of new user forms uniquely targetable. Contexts are 'add-existing-user' (Multisite), and 'add-new-user' (single site and network admin).

Использование

add_action( 'user_new_form', 'wp_kama_user_new_form_action' );

/**
 * Function for `user_new_form` action-hook.
 * 
 * @param string $type A contextual string specifying which type of new user form the hook follows.
 *
 * @return void
 */
function wp_kama_user_new_form_action( $type ){

	// action...
}
$type(строка)
A contextual string specifying which type of new user form the hook follows.

Список изменений

С версии 3.7.0 Введена.

Где вызывается хук

В файле: /wp-admin/user-new.php
user_new_form
wp-admin/user-new.php 492
do_action( 'user_new_form', 'add-existing-user' );
wp-admin/user-new.php 650
do_action( 'user_new_form', 'add-new-user' );

Где используется хук в WordPress

Использование не найдено.