Skip to content

Commit 9c535e6

Browse files
authored
Merge pull request #32 from woocommerce/fix-hooks-in-internal-or-capitalized
Fix wrong capitalization of links in hooks reference
2 parents 8df480e + a1e7479 commit 9c535e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

generate-hook-docs.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ protected static function getFileURL(array $file): string
6363
{
6464
$url = str_replace('.php', '.html#source-view.' . $file['line'], $file['path']);
6565
$url = str_replace(['_', '/'], '-', $url);
66+
$url = strtolower($url);
6667

6768
return '../files/' . $url;
6869
}

0 commit comments

Comments
 (0)