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.


Top ↑

Return Return

(string|false)


Top ↑

Source Source

File: packages/woocommerce-admin/src/PluginsProvider/PluginsProvider.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.