WordPress at Your Fingertips
function is not described

plugin_sandbox_scrape() WP 3.0.0

Load a given plugin attempt to generate errors.

No Hooks.

Return

null. Nothing.

Usage

plugin_sandbox_scrape( $plugin );
$plugin(string) (required)
Path to the plugin file relative to the plugins directory.

Changelog

Since 3.0.0 Introduced.
Since 4.4.0 Function was moved into the wp-admin/includes/plugin.php file.

Code of plugin_sandbox_scrape() WP 5.8.2

function plugin_sandbox_scrape( $plugin ) {
	if ( ! defined( 'WP_SANDBOX_SCRAPING' ) ) {
		define( 'WP_SANDBOX_SCRAPING', true );
	}

	wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin );
	include_once WP_PLUGIN_DIR . '/' . $plugin;
}