wp_plugin_update_rows

Definition:
function wp_plugin_update_rows() {}

Source code

function wp_plugin_update_rows() {

	if ( !current_user_can('update_plugins' ) )

		return;



	$plugins = get_site_transient( 'update_plugins' );

	if ( isset($plugins->response) && is_array($plugins->response) ) {

		$plugins = array_keys( $plugins->response );

		foreach( $plugins as $plugin_file ) {

			add_action( "after_plugin_row_$plugin_file", 'wp_plugin_update_row', 10, 2 );

		}

	}

}

3985

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: