Rename article card footer filter for consistency
This commit is contained in:
parent
6a00b5f983
commit
add3538bc2
@ -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.
|
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:**
|
**$footer_items:**
|
||||||
|
@ -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>';
|
$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
|
// 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
|
// Implode and render footer items
|
||||||
echo implode( ' ', $footer_items );
|
echo implode( ' ', $footer_items );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user