The problem is that on Windows path might resolve differently, because of notation. Problem is that even if file exists it will not be included (silent error ignore) in specific cases (directory names).
if (!empty($config->customPHPPathDir) &&
file_exists("{$config->customPHPPathDir}/civicrmHooks.php")
) {
- @include_once 'civicrmHooks.php';
+ @include_once "{$config->customPHPPathDir}/civicrmHooks.php";
}
// initialise with the pre-existing 'wordpress' prefix