WordPress at a glance
function is not described


VgmcpInstaller::inflectPackageVars() public WC 1.0

Format package name.

For package type vgmcp-bundle, cut off a trailing '-bundle' if present.

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

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

No Hooks.


null. Nothing.


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

Code of VgmcpInstaller::inflectPackageVars() WC 5.3.0

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

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

    return $vars;