get_edd_data();
// Sort by title.
usort( $extensions_data, function( $a, $b ) {
return strcmp( $b->title->rendered, $a->title->rendered );
});
/**
* Include is required for the usage of is_plugin_active()
* to identify if a plugin is currently activated.
* This info is further used to display a correct action button
* depending on plugin's state (i.e. Update Now, Activate, Active).
*/
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
$installed_plugins = array();
foreach ( get_plugins() as $path => $plugin_info ) {
$installed_plugins[ strtolower( $plugin_info['Name'] ) ] = array(
'version' => $plugin_info['Version'],
'path' => $path,
'is_active' => is_plugin_active( $path ),
);
}
?>