+ // Details link using API info, if available
+ if ( isset( $plugin_data['slug'] ) && current_user_can( 'install_plugins' ) ) {
+ $plugin_meta[] = sprintf( '<a href="%s" class="thickbox" aria-label="%s" data-title="%s">%s</a>',
+ esc_url( network_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $plugin_data['slug'] .
+ '&TB_iframe=true&width=600&height=550' ) ),
+ esc_attr( sprintf( __( 'More information about %s' ), $plugin_name ) ),
+ esc_attr( $plugin_name ),
+ __( 'View details' )
+ );
+ } elseif ( ! empty( $plugin_data['PluginURI'] ) ) {
+ $plugin_meta[] = sprintf( '<a href="%s">%s</a>',
+ esc_url( $plugin_data['PluginURI'] ),
+ __( 'Visit plugin site' )
+ );
+ }
+
+ /**
+ * Filter the array of row meta for each plugin in the Plugins list table.
+ *
+ * @since 2.8.0
+ *
+ * @param array $plugin_meta An array of the plugin's metadata,
+ * including the version, author,
+ * author URI, and plugin URI.
+ * @param string $plugin_file Path to the plugin file, relative to the plugins directory.
+ * @param array $plugin_data An array of plugin data.
+ * @param string $status Status of the plugin. Defaults are 'All', 'Active',
+ * 'Inactive', 'Recently Activated', 'Upgrade', 'Must-Use',
+ * 'Drop-ins', 'Search'.
+ */