Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_authorize_application_password_form_approved_no_js

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
219                 * action to ensure that both the JS and no-JS variants are handled.
220                 *
221                 * @since 5.6.0
222                 * @since 5.6.1 Corrected action name and signature.
223                 *
224                 * @param string  $new_password The newly generated application password.
225                 * @param array   $request      The array of request data. All arguments are optional and may be empty.
226                 * @param WP_User $user         The user authorizing the application.
227                 */
228                do_action( 'wp_authorize_application_password_form_approved_no_js', $new_password, $request, $user );
229                ?>
230           <?php else : ?>
231                <form action="<?php echo esc_url( admin_url( 'authorize-application.php' ) ); ?>" method="post" class="form-wrap">
232                     <?php wp_nonce_field( 'authorize_application_password' ); ?>
233                     <input type="hidden" name="action" value="authorize_application_password" />
234                     <input type="hidden" name="app_id" value="<?php echo esc_attr( $app_id ); ?>" />
235                     <input type="hidden" name="success_url" value="<?php echo esc_url( $success_url ); ?>" />
236                     <input type="hidden" name="reject_url" value="<?php echo esc_url( $reject_url ); ?>" />
237