wpcom_vip_plugins_url

Filter plugins_url() so that it works for plugins inside the shared VIP plugins directory or a theme directory.

Props to the GigaOm dev team for coming up with this method.

Parameters

Name Type Description
$url string Optional. Absolute URL to the plugins directory.
$path string Optional. Path relative to the plugins URL.
$plugin string Optional. The plugin file that you want the URL to be relative to.

Return Value

string

Ready to get started?

Tell us about your needs

Let us lead the way. We’ll help you select a top tier development partner. We’ll train your developers, operations, infrastructure, and editorial teams. We’ll coarchitect your deployment processes. We will provide live support for peak events. We’ll help your people avoid dark alleys and blind corners, and reduce wasted cycles.