Automattic\WooCommerce\Admin\PluginsProvider
PluginsProviderInterface::get_plugin_path_from_slug()
Get the path to the plugin file relative to the plugins directory from the plugin slug.
E.g. 'woocommerce' returns 'woocommerce/woocommerce.php'
Method of the class: PluginsProviderInterface{}
No Hooks.
Return
String|false
.
Usage
$PluginsProviderInterface = new PluginsProviderInterface(); $PluginsProviderInterface->get_plugin_path_from_slug( $slug );
- $slug(string) (required)
- Plugin slug to get path for.
PluginsProviderInterface::get_plugin_path_from_slug() PluginsProviderInterface::get plugin path from slug code WC 9.8.2
public function get_plugin_path_from_slug( $slug );