Automattic\WooCommerce\Admin\PluginsProvider

PluginsProviderInterface::get_plugin_path_from_slug()publicWC 1.0

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() code WC 7.3.0

public function get_plugin_path_from_slug( $slug );