WordPress at a glance
function is not described


OctoberInstaller::inflectPackageVars() public WC 1.0

Format package name.

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

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

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

No Hooks.


Null. Nothing.


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

Code of OctoberInstaller::inflectPackageVars() WC 5.0.0

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

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

    return $vars;