Get the url of plugins. Example 1: $url = plugins_url(); $path = parse_url($url); var_dump($path['path']);