plugin_sandbox_scrape

The WordPress Core plugin sandbox scrape function.

Description

plugin_sandbox_scrape( (string) $plugin ); 

Parameters (1)

0. $plugin (string)
The plugin.

Usage

  1. if ( !function_exists( 'plugin_sandbox_scrape' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/plugin.php'; 
  3.  
  4. // The plugin. 
  5. $plugin = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = plugin_sandbox_scrape($plugin); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/plugin.php  
  1. function plugin_sandbox_scrape( $plugin ) { 
  2. include( WP_PLUGIN_DIR . '/' . $plugin );