Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_create_application_password_form

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
792                                                   <?php
793                                                   /**
794                                                    * Fires in the create Application Passwords form.
795                                                    *
796                                                    * @since 5.6.0
797                                                    *
798                                                    * @param WP_User $profile_user The current WP_User object.
799                                                    */
800                                                   do_action( 'wp_create_application_password_form', $profile_user );
801                                                   ?>
803                                                   <button type="button" name="do_new_application_password" id="do_new_application_password" class="button button-secondary"><?php _e( 'Add New Application Password' ); ?></button>
804                                              </div>
805                                         <?php else : ?>
806                                              <div class="notice notice-error inline">
807                                                   <p><?php _e( 'Your website appears to use Basic Authentication, which is not currently compatible with Application Passwords.' ); ?></p>
808                                              </div>
809                                         <?php endif; ?>