Skip to content

Commit 92e9d0d

Browse files
committed
Add filter for Webmentions title
Adds independent_publisher_webmentions_title filter. Also removes independent_publisher_pingslist_* filters from README.md as those were removed when webmention support was added in v1.7.
1 parent 9ad3f4d commit 92e9d0d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,7 @@ WordPress Filters and Actions allow you to modify the theme without actually mod
403403
- `independent_publisher_entry_meta_author_prefix` - Allows you to override the default Author prefix (default is 'by'; e.g., "by <author name>").
404404
- `independent_publisher_search_stats` - Allows you to override the Search stats shown on Search pages.
405405
- `independent_publisher_tag_list_title` - Allows you to override the default Tag List Title of 'Related Content by Tag' at the bottom of Single posts.
406-
- `independent_publisher_pingslist_title` - Allows you to override the default Pings List title of 'Readers who Shared This' at the bottom of Single posts.
407-
- `independent_publisher_pingslist_end_note` - Allows you to override the default Pings List end note of 'Thank you!' at the bottom of Single posts.
406+
- `independent_publisher_webmentions_title` - Allows you to override the default Webmentions title of 'Webmentions' at the bottom of Single posts.
408407

409408
### Action Hooks
410409

comments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797

9898
<?php if ( independent_publisher_comment_count_mentions() ) { // If we have mentions, let's show them ?>
9999
<div id="webmentions" class="mentions-list">
100-
<h3><?php _e( 'Webmentions', 'independent-publisher' ); ?></h3>
100+
<h3><?php echo apply_filters( 'independent_publisher_webmentions_title', __( 'Webmentions', 'independent-publisher' ) ); ?></h3>
101101
<?php independent_publisher_mentions(); ?>
102102
</div>
103103
<?php } // end if ( independent_publisher_comment_count_mentions() )?>

0 commit comments

Comments
 (0)