Skip to content

Commit c3e9b44

Browse files
committed
Improve formatting of hooks readme section
1 parent 29917e4 commit c3e9b44

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugins/optimization-detective/readme.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ There are currently **no settings** and no user interface for this plugin since
3333

3434
When the `WP_DEBUG` constant is enabled, additional logging for Optimization Detective is added to the browser console.
3535

36-
= Filters =
36+
= Hooks =
3737

3838
**Filter:** `od_breakpoint_max_widths` (default: [480, 600, 782])
3939

@@ -68,7 +68,9 @@ Filters the sample size for a breakpoint's URL metrics on a given URL. The sampl
6868

6969
`
7070
<?php
71-
add_filter( 'od_url_metrics_breakpoint_sample_size', function (): int { return 1; } );
71+
add_filter( 'od_url_metrics_breakpoint_sample_size', function (): int {
72+
return 1;
73+
} );
7274
`
7375

7476
**Filter:** `od_url_metric_storage_lock_ttl` (default: 1 minute)

0 commit comments

Comments
 (0)