PluginsProvider::get_plugin_path_from_slug( string $slug )
Get the path to the plugin file relative to the plugins directory from the plugin slug.
Description Description
E.g. ‘woocommerce’ returns ‘woocommerce/woocommerce.php’
Parameters Parameters
- $slug
-
(Required) Plugin slug to get path for.
Return Return
(string|false)
Source Source
File: packages/woocommerce-admin/src/PluginsProvider/PluginsProvider.php