We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e440689 commit 7ae6e93Copy full SHA for 7ae6e93
generate-hook-docs.php
@@ -294,8 +294,9 @@ protected static function getJSOutput(array $hook_list): string
294
295
foreach ($hook_list as $heading => $hooks) {
296
foreach ($hooks as $hook => $details) {
297
- $summary = $heading . ' ' . (('filter' === $details['type']) ? 'Filter' : 'Action');
298
- $name = $hook . ' ' . $details['type'];
+ $type = 'filter' === $details['type'] ? 'Filter' : 'Action';
+ $summary = $heading . ' ' . $type;
299
+ $name = '<strong>' . $type . ' hook: <\/strong>' . $hook;
300
301
foreach ($details['files'] as $file) {
302
$summary .= ' located in ' . str_replace('woocommerce/', '', $file['path']) . ': ' . $file['line'];
0 commit comments