wp_create_application_password_form
Action HookDescription
Fires in the create Application Passwords form.Hook Information
File Location |
wp-admin/user-edit.php
View on GitHub
|
Hook Type | Action |
Line Number | 834 |
Hook Parameters
Type | Name | Description |
---|---|---|
WP_User
|
$profile_user
|
The current WP_User object. |
Usage Examples
Basic Usage
<?php
// Hook into wp_create_application_password_form
add_action('wp_create_application_password_form', 'my_custom_function', 10, 1);
function my_custom_function($profile_user) {
// Your custom code here
}
Source Code Context
wp-admin/user-edit.php:834
- How this hook is used in WordPress core
<?php
829 *
830 * @since 5.6.0
831 *
832 * @param WP_User $profile_user The current WP_User object.
833 */
834 do_action( 'wp_create_application_password_form', $profile_user );
835 ?>
836
837 <button type="button" name="do_new_application_password" id="do_new_application_password" class="button button-secondary"><?php _e( 'Add Application Password' ); ?></button>
838 </div>
839 <?php
PHP Documentation
<?php
/**
* Fires in the create Application Passwords form.
*
* @since 5.6.0
*
* @param WP_User $profile_user The current WP_User object.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-admin/user-edit.php
Related Hooks
Related hooks will be displayed here in future updates.