' . esc_html( $app_name ) . ''
);
?>
ID, true );
$blogs_count = count( $blogs );
if ( $blogs_count > 1 ) {
?>
the %2$s site in this installation that you have permissions on.',
'This will grant access to all %2$s sites in this installation that you have permissions on.',
$blogs_count
);
if ( is_super_admin() ) {
/* translators: 1: URL to my-sites.php, 2: Number of sites the user has. */
$message = _n(
'This will grant access to the %2$s site on the network as you have Super Admin rights.',
'This will grant access to all %2$s sites on the network as you have Super Admin rights.',
$blogs_count
);
}
printf(
$message,
admin_url( 'my-sites.php' ),
number_format_i18n( $blogs_count )
);
?>
' . __( 'Be sure to save this in a safe location. You will not be able to retrieve it.' ) . '
';
$args = array(
'type' => 'success',
'additional_classes' => array( 'notice-alt', 'below-h2' ),
'paragraph_wrap' => false,
);
wp_admin_notice( $message, $args );
/**
* Fires in the Authorize Application Password new password section in the no-JS version.
*
* In most cases, this should be used in combination with the {@see 'wp_application_passwords_approve_app_request_success'}
* action to ensure that both the JS and no-JS variants are handled.
*
* @since 5.6.0
* @since 5.6.1 Corrected action name and signature.
*
* @param string $new_password The newly generated application password.
* @param array $request The array of request data. All arguments are optional and may be empty.
* @param WP_User $user The user authorizing the application.
*/
do_action( 'wp_authorize_application_password_form_approved_no_js', $new_password, $request, $user );
else :
?>