wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



plugin_sandbox_scrape › WordPress Function

Depuis3.0.0
Dépréciéen/a
plugin_sandbox_scrape ( $plugin )
Paramètres:
  • (string) $plugin Path to the plugin file relative to the plugins directory.
    Requis: Oui
Défini(e) dans:
Codex:
Changelog:
  • 4.4.0

Loads a given plugin attempt to generate errors.



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;
}