wp_print_request_filesystem_credentials_modal

Print the filesystem credentials modal when needed.

Description

wp_print_request_filesystem_credentials_modal(); 

Usage

  1. if ( !function_exists( 'wp_print_request_filesystem_credentials_modal' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/file.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wp_print_request_filesystem_credentials_modal(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/file.php  
  1. function wp_print_request_filesystem_credentials_modal() { 
  2. $filesystem_method = get_filesystem_method(); 
  3. ob_start(); 
  4. $filesystem_credentials_are_stored = request_filesystem_credentials( self_admin_url() ); 
  5. ob_end_clean(); 
  6. $request_filesystem_credentials = ( $filesystem_method != 'direct' && ! $filesystem_credentials_are_stored ); 
  7. if ( ! $request_filesystem_credentials ) { 
  8. return; 
  9. ?> 
  10. <div id="request-filesystem-credentials-dialog" class="notification-dialog-wrap request-filesystem-credentials-dialog"> 
  11. <div class="notification-dialog-background"></div> 
  12. <div class="notification-dialog" role="dialog" aria-labelledby="request-filesystem-credentials-title" tabindex="0"> 
  13. <div class="request-filesystem-credentials-dialog-content"> 
  14. </div> 
  15. </div> 
  16. </div> 
  17. <?php