public function getContentPath()
    {
        if ($this->composer->getPackage()) {
            $topExtra = $this->composer->getPackage()->getExtra();
            if (! empty($topExtra['wp-content-dir'])) {
                return rtrim($topExtra['wp-content-dir'], '/\\');
            }
        }

        return 'wp-content';
    }