Using home_url instead of site_url
-
For anybody who is interested…
I needed some changes to the plugin in order to have the domain’s pure URL for shortening.
So I wanted https://www.domain.com/shortlink – not https://www.domain.com/wordpress/shortlink
I made the following changes which seem to work (until next update ?? )
../helpers/site_url_no_domain.php line 8
return preg_replace('%^https://[^/]*%', '', home_url($path, 'http'));
../views/admin/edit/index.php line 45
<th scope="row"><?php echo PMLC_Plugin::getInstance()->isPermalinks() ? home_url('/') : home_url('/?cloaked=') ?></th>
../models/link/record.php line 36
$url = home_url(PMLC_Plugin::getInstance()->getOption('url_prefix') . '/' . $this->slug);
- The topic ‘Using home_url instead of site_url’ is closed to new replies.