plugin_sandbox_scrape( string $plugin )
Loads a given plugin attempt to generate errors.
Parameters
- $plugin
-
(Required) Path to the plugin file relative to the plugins directory.
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 |
---|---|
4.4.0 | Function was moved into the wp-admin/includes/plugin.php file. |
3.0.0 | Introduced. |