diff --git a/src/filters.php b/src/filters.php index 3d7789c..531e9df 100644 --- a/src/filters.php +++ b/src/filters.php @@ -53,7 +53,7 @@ add_filter('template_include', function ($template) { echo template($template, $data); // Return a blank file to make WordPress happy - return get_template_directory() . '/index.php'; + return get_theme_file_path('index.php'); }, PHP_INT_MAX); /**