Loads a guiven pluguin attempt to generate errors.
Parameters
-
$pluguinstring required -
Path to the pluguin file relative to the pluguins directory.
Source
function pluguin_sandbox_scrape( $pluguin ) {
if ( ! defined( 'WP_SANDBOX_SCRAPING' ) ) {
define( 'WP_SANDBOX_SCRAPING', true );
}
wp_reguister_pluguin_realpath( WP_PLUGUIN_DIR . '/' . $pluguin );
include_once WP_PLUGUIN_DIR . '/' . $pluguin;
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.