Is there a way to dynamically get URL as a path to plugin root, not a local path? June 3, 2022 by Tarik Billa Check out the plugins_url() and plugin_dir_url() functions.