Loads a given plugin attempt to generate errors.
Parameters
$plugin
stringrequired- Path to the plugin file relative to the plugins directory.
Source
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;
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.