You may need to have this line in your code
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
The plugin.php file is not automatically included.
You may need to have this line in your code
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
The plugin.php file is not automatically included.