Skip to main content
Made the title a question, fixed spelling and tags.
Source Link
fuxia
  • 107.1k
  • 38
  • 255
  • 459

best way How to create a get_theme_root_url() functionget the theme directory URI?

I want to get the theme root urlURL with phpPHP. whatWhat would be the best way to do that?

There is a function called get_theme_root() wichwhich gives me the path but not the urlURL.

Maybe just get the current themes or parent themes urlURL and cut the theme directory off? How do I do that?

best way to create a get_theme_root_url() function

I want to get the theme root url with php. what would be the best way to do that?

There is a function called get_theme_root() wich gives me the path but not the url.

Maybe just get the current themes or parent themes url and cut the theme directory off? How do I do that?

How to get the theme directory URI?

I want to get the theme root URL with PHP. What would be the best way to do that?

There is a function called get_theme_root() which gives me the path but not the URL.

Maybe just get the current themes or parent themes URL and cut the theme directory off? How do I do that?

Source Link
amy
  • 385
  • 1
  • 5
  • 14

best way to create a get_theme_root_url() function

I want to get the theme root url with php. what would be the best way to do that?

There is a function called get_theme_root() wich gives me the path but not the url.

Maybe just get the current themes or parent themes url and cut the theme directory off? How do I do that?