Filter the boolean for include path of the custom file get contents function.
$use_include_path (bool) (required) If set to true, it will trigger include path search.
$app = \Liten\Liten::getInstance(); function trigger_include_path_search($use_include_path) { $use_include_path = true; return $use_include_path; } $app->hook->add_filter('trigger_include_path_search', 'trigger_include_path_search', 10, 1);
Since 6.2.4
trigger_include_path_search hook is located in app/src/functions/core-function.php.