wp_plugin_update_rows

The WordPress Core wp plugin update rows function.

Description

wp_plugin_update_rows(); 

Usage

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

Defined (1)

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

/wp-admin/includes/update.php  
  1. function wp_plugin_update_rows() { 
  2. if ( !current_user_can('update_plugins' ) ) 
  3. return; 
  4.  
  5. $plugins = get_site_transient( 'update_plugins' ); 
  6. if ( isset($plugins->response) && is_array($plugins->response) ) { 
  7. $plugins = array_keys( $plugins->response ); 
  8. foreach ( $plugins as $plugin_file ) { 
  9. add_action( "after_plugin_row_$plugin_file", 'wp_plugin_update_row', 10, 2 );