Rename article card footer filter for consistency

This commit is contained in:
Tetrakern 2024-07-29 14:42:09 +02:00
parent 6a00b5f983
commit add3538bc2
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ Filters the array of allowed orderby arguments for WP_Query.
---
### `apply_filters( 'fictioneer_filter_article_card_footer', $footer_items, $posts )`
### `apply_filters( 'fictioneer_filter_shortcode_article_card_footer', $footer_items, $posts )`
Filters the intermediate output array in the `_article-cards.php` partial before it is imploded and rendered. Contains statistics with icons such as the author, publishing or modified date, and comments.
**$footer_items:**

View File

@ -257,7 +257,7 @@ $pag_args = array(
$footer_items['comments'] = '<span class="card__footer-comments"><i class="card-footer-icon fa-solid fa-message" title="' . esc_attr__( 'Comments', 'fictioneer' ) . '"></i> ' . get_comments_number( $post ) . '</span>';
// Filter footer items
$footer_items = apply_filters( 'fictioneer_filter_article_card_footer', $footer_items, $post );
$footer_items = apply_filters( 'fictioneer_filter_shortcode_article_card_footer', $footer_items, $post );
// Implode and render footer items
echo implode( ' ', $footer_items );