Can I change get_template_directory_uri()?

If you look at the function in source, you’ll see the template_directory_uri hook you can filter to modify output.

return apply_filters( 'template_directory_uri', $template_dir_uri, $template, $theme_root_uri );

Leave a Comment