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
786                                                   <?php
787                                                   /**
788                                                    * Fires in the create Application Passwords form.
789                                                    *
790                                                    * @since 5.6.0
791                                                    *
792                                                    * @param WP_User $profile_user The current WP_User object.
793                                                    */
794                                                   do_action( 'wp_create_application_password_form', $profile_user );
795                                                   ?>
797                                                   <button type="button" name="do_new_application_password" id="do_new_application_password" class="button button-secondary"><?php _e( 'Add New Application Password' ); ?></button>
798                                              </div>
799                                         <?php else : ?>
800                                              <div class="notice notice-error inline">
801                                                   <p><?php _e( 'Your website appears to use Basic Authentication, which is not currently compatible with Application Passwords.' ); ?></p>
802                                              </div>
803                                         <?php endif; ?>