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)
Plugin file to load.

Code of plugin sandbox scrape: wp-admin/includes/plugin.php VER 5.0.3

<?php
function plugin_sandbox_scrape( $plugin ) {
	wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin );
	include( WP_PLUGIN_DIR . '/' . $plugin );
}