From 3a58671ea0995377836bf21a416cd92b1af769b8 Mon Sep 17 00:00:00 2001 From: Tetrakern <26898880+Tetrakern@users.noreply.github.com> Date: Thu, 9 May 2024 15:18:21 +0200 Subject: [PATCH] Update CUSTOMIZE.md --- CUSTOMIZE.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CUSTOMIZE.md b/CUSTOMIZE.md index 5037c96b..153d16de 100644 --- a/CUSTOMIZE.md +++ b/CUSTOMIZE.md @@ -115,6 +115,9 @@ Or change them completely, if you want even depending on the chapter or associat /** * Overwrites the chapter list item string with a prefixed title * + * Note: Warning, this replaces the complete string and should be + * executed early in case there are more, less extreme filters. + * * @since x.x.x * * @param string $item Original HTML string @@ -137,6 +140,8 @@ function child_prefix_chapter_index_items( $item, $post, $args ) { $args['list_title'] ?: $args['title'] ); } + +// Priority 1 to execute the filter early add_filter( 'fictioneer_filter_chapter_list_item', 'child_prefix_chapter_index_items', 1, 3 ); ```