A WordPress-centric search engine for devs and theme authors



plugin_sandbox_scrape ›

Since3.0.0
Deprecatedn/a
plugin_sandbox_scrape ( $plugin )
Parameters:
  • (string) $plugin Plugin file to load.
    Required: Yes
Defined at:
Codex:
Change Log:
  • 4.4.0

Load a given plugin attempt to generate errors.



Source

function plugin_sandbox_scrape( $plugin ) {
	wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin );
	include( WP_PLUGIN_DIR . '/' . $plugin );
}