Tribe__Tickets__Status__Manager::get_provider_slug( string|Tribe__Tickets__Tickets $module )
Get the Provider Slug from the Module Class.
Contents
Parameters
- $module
-
(string|Tribe__Tickets__Tickets) (Required) The string of the module main class name, its slug, or instance.
Return
(string|false) Provider slug or false if not found.
Source
File: src/Tribe/Status/Manager.php
public function get_provider_slug( $module_class ) {
if ( ! isset( $this->module_slugs[ $module_class ] ) || ! isset( $this->active_modules[ $module_class ] ) ) {
return false;
}
return $this->active_modules[ $module_class ];
}
Changelog
| Version | Description |
|---|---|
| 4.12.3 | Added support for passing slug (such as to confirm slug is valid) and class instance. |
| 4.11.0 | Introduced. |