Skip to content

Commit 7f68623

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

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

plugins/optimization-detective/readme.txt

Lines changed: 5 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)
@@ -165,4 +167,5 @@ The [plugin source code](https://github.com/WordPress/performance/tree/trunk/plu
165167
== Upgrade Notice ==
166168

167169
= 0.3.0 =
170+
168171
Image loading optimizations have been moved to a new dependent plugin called Image Prioritizer. The Optimization Detective plugin now serves as a dependency.

0 commit comments

Comments
 (0)