Un motore di ricerca WordPress per sviluppatori e autori di temi



plugin_sandbox_scrape ›

Da3.0.0
Deprecaton/a
plugin_sandbox_scrape ( $plugin )
Parametri:
  • (string) $plugin Path to the plugin file relative to the plugins directory.
    Richiesto:
Definito a:
Codex:
ChangeLog:
  • 4.4.0

Load a given plugin attempt to generate errors.



Sorgenti

function plugin_sandbox_scrape( $plugin ) {
	if ( ! defined( 'WP_SANDBOX_SCRAPING' ) ) {
		define( 'WP_SANDBOX_SCRAPING', true );
	}
	wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin );
	include( WP_PLUGIN_DIR . '/' . $plugin );
}