| @@ -41,9 +41,10 @@ | ||
| 41 | 41 | |
| 42 | 42 | echo wp_sprintf( |
| 43 | 43 | '<li><a %1$s>%2$s</a></li>', |
| 44 | 44 | $_link_attributes, // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 45 | - betterdocs()->template_helper->kses( get_the_title() ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 45 | + // Same per-item filter as category-list.php (API method badges etc.). | |
| 46 | + apply_filters( 'betterdocs_docs_list_item_title', betterdocs()->template_helper->kses( get_the_title() ), get_the_ID() ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 46 | 47 | ); |
| 47 | 48 | endwhile; |
| 48 | 49 | |
| 49 | 50 | wp_reset_postdata(); |