AbstractCommand::prefix_slug( string $slug )

Prefix an add-on slug with lifterlms- if it’s not already present.

Parameters Parameters


(string) (Required) Add-on slug.

Top ↑

Return Return


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

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.