Uses
Uses | Description |
---|---|
wp-includes/plugin.php: wp_register_plugin_realpath() | Register a plugin’s real path. |
Load a given plugin attempt to generate errors.
(string) (Required) Path to the plugin file relative to the plugins directory.
File: wp-admin/includes/plugin.php
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; }
Version | Description |
---|---|
4.4.0 | Function was moved into the wp-admin/includes/plugin.php file. |
3.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/plugin_sandbox_scrape