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.


Top ↑

Return Return

(string)


Top ↑

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;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
0.0.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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