plugin_sandbox_scrape( string $plugin )
Load a given plugin attempt to generate errors.
Parameters
- $plugin
-
(Required) Plugin file to load.
Source
File: wp-admin/includes/plugin.php
function plugin_sandbox_scrape( $plugin ) {
wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin );
include( WP_PLUGIN_DIR . '/' . $plugin );
}
Changelog
Version | Description |
---|---|
WP-4.4.0 | Function was moved into the wp-admin/includes/plugin.php file. |
WP-3.0.0 | Introduced. |