plugin_sandbox_scrape() – Load a given plugin attempt to generate errors.

You appear to be a bot. Output may be restricted

Description

Load a given plugin attempt to generate errors.

Usage

plugin_sandbox_scrape( $plugin );

Parameters

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

Returns

void

Source

File name: wordpress/wp-admin/includes/plugin.php
Lines:

1 to 8 of 8
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;
}
 

 View on GitHub View on Trac