Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_authorize_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

This hook occurs 2 times in this file.

Line Code
202                /**
203                 * Fires in the Authorize Application Password new password section.
204                 *
205                 * @since 5.6.0
206                 *
207                 * @param string  $new_password The newly generated application password.
208                 * @param array   $request      The array of request data. All arguments are optional and may be empty.
209                 * @param WP_User $user         The user authorizing the application.
210                 */
211                do_action( 'wp_authorize_application_password_form', $request, $user );
212                ?>
213           <?php else : ?>
214                <form action="<?php echo esc_url( admin_url( 'authorize-application.php' ) ); ?>" method="post" class="form-wrap">
215                     <?php wp_nonce_field( 'authorize_application_password' ); ?>
216                     <input type="hidden" name="action" value="authorize_application_password" />
217                     <input type="hidden" name="app_id" value="<?php echo esc_attr( $app_id ); ?>" />
218                     <input type="hidden" name="success_url" value="<?php echo esc_url( $success_url ); ?>" />
219                     <input type="hidden" name="reject_url" value="<?php echo esc_url( $reject_url ); ?>" />
220
 
Line Code
232                      * @param array   $request {
233                      *     The array of request data. All arguments are optional and may be empty.
234                      *
235                      *     @type string $app_name    The suggested name of the application.
236                      *     @type string $success_url The url the user will be redirected to after approving the application.
237                      *     @type string $reject_url  The url the user will be redirected to after rejecting the application.
238                      * }
239                      * @param WP_User $user The user authorizing the application.
240                      */
241                     do_action( 'wp_authorize_application_password_form', $request, $user );
242                     ?>
243
244                     <?php
245                     submit_button(
246                          __( 'Yes, I approve of this connection.' ),
247                          'primary',
248                          'approve',
249                          false,
250                          array(