WordPress at a glance
function is not described

plugin_sandbox_scrape() WP 3.0.0

Load a given plugin attempt to generate errors.

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

No Hooks.

Return

Nothing (null).

Usage

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

Code of plugin sandbox scrape: wp-admin/includes/plugin.php WP 5.2.2

<?php
function plugin_sandbox_scrape( $plugin ) {
	if ( ! defined( 'WP_SANDBOX_SCRAPING' ) ) {
		define( 'WP_SANDBOX_SCRAPING', true );
	}
	wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin );
	include( WP_PLUGIN_DIR . '/' . $plugin );
}