signup_hidden_fields хук-событиеWP 3.0.0

Hidden sign-up form fields output when creating another site or user.

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

add_action( 'signup_hidden_fields', 'wp_kama_signup_hidden_fields_action' );

/**
 * Function for `signup_hidden_fields` action-hook.
 * 
 * @param string $context A string describing the steps of the sign-up process. The value can be 'create-another-site', 'validate-user', or 'validate-site'.
 *
 * @return void
 */
function wp_kama_signup_hidden_fields_action( $context ){

	// action...
}
$context(строка)
A string describing the steps of the sign-up process. The value can be 'create-another-site', 'validate-user', or 'validate-site'.

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

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

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

signup_another_blog()
signup_hidden_fields
signup_user()
signup_hidden_fields
signup_blog()
signup_hidden_fields
wp-signup.php 388
do_action( 'signup_hidden_fields', 'create-another-site' );
wp-signup.php 608
do_action( 'signup_hidden_fields', 'validate-user' );
wp-signup.php 747
do_action( 'signup_hidden_fields', 'validate-site' );

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

wp-includes/ms-default-filters.php 71
add_action( 'signup_hidden_fields', 'signup_nonce_fields' );