WordPress at a glance
function is not described


AsgardInstaller::inflectPackageVars() public WC 1.0

Format package name.

For package type asgard-module, cut off a trailing '-plugin' if present.

For package type asgard-theme, cut off a trailing '-theme' if present.

{} It's a method of the class: AsgardInstaller{}

No Hooks.


null. Nothing.


$AsgardInstaller = new AsgardInstaller();
$AsgardInstaller->inflectPackageVars( $vars );
$vars (required)

Code of AsgardInstaller::inflectPackageVars() WC 5.2.2

public function inflectPackageVars($vars)
    if ($vars['type'] === 'asgard-module') {
        return $this->inflectPluginVars($vars);

    if ($vars['type'] === 'asgard-theme') {
        return $this->inflectThemeVars($vars);

    return $vars;