signup_hidden_fields
Fires when 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_hidden_fields
signup_hidden_fields
signup_hidden_fields
wp-signup.php 409
do_action( 'signup_hidden_fields', 'create-another-site' );
wp-signup.php 629
do_action( 'signup_hidden_fields', 'validate-user' );
wp-signup.php 774
do_action( 'signup_hidden_fields', 'validate-site' );
Где используется хук в WordPress
wp-includes/ms-default-filters.php 71
add_action( 'signup_hidden_fields', 'signup_nonce_fields' );