wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



plugin_sandbox_scrape › WordPress Function

Desde3.0.0
Obsoleton/a
plugin_sandbox_scrape ( $plugin )
Parâmetros:
  • (string) $plugin Path to the plugin file relative to the plugins directory.
    Required: Yes
Definido em:
Codex:
Log de mudanças:
  • 4.4.0

Loads a given plugin attempt to generate errors.



Fonte

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