wp_theme_update_rows

The WordPress Core wp theme update rows function.

Description

wp_theme_update_rows(); 

Usage

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

Defined (1)

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

/wp-admin/includes/update.php  
  1. function wp_theme_update_rows() { 
  2. if ( !current_user_can('update_themes' ) ) 
  3. return; 
  4.  
  5. $themes = get_site_transient( 'update_themes' ); 
  6. if ( isset($themes->response) && is_array($themes->response) ) { 
  7. $themes = array_keys( $themes->response ); 
  8.  
  9. foreach ( $themes as $theme ) { 
  10. add_action( "after_theme_row_$theme", 'wp_theme_update_row', 10, 2 );