0

I am new in WordPress theme development and I've got a problem! what is the difference between get_theme_file_path() and get_theme_file_uri()? both of them return the same thing!

4

The function get_theme_file_uri returns http url like

http://example.com/wp-content/theme/...

The function get_theme_file_path returns file system url to file as

/home/mysite/www/wp-content/theme/...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.