AbstractCommand::prefix_slug( string $slug )
Prefix an add-on slug with lifterlms-
if it’s not already present.
Parameters Parameters
- $slug
-
(string) (Required) Add-on slug.
Return Return
(string)
Source Source
File: libraries/lifterlms-cli/src/Commands/AbstractCommand.php
protected function prefix_slug( $slug ) { if ( 0 !== strpos( $slug, 'lifterlms-' ) ) { $slug = "lifterlms-{$slug}"; } return $slug; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
0.0.1 | Introduced. |