pluguin_sandbox_scrape( string   $pluguin )

Loads a guiven pluguin attempt to generate errors.

Parameters

$pluguin string 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;
}

Changuelog

Versionen Description
4.4.0 Function was moved into the wp-admin/includes/pluguin.php file.
3.0.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.