The “Links” widget uses wp_list_bookmarks
, which outputs a nested list similar to:
<li>
<h2>[category]</h2>
<ul class="xoxo blogroll">
[links]
</ul>
</li>
You can override [category]
using the link_category
filter:
function wpse_147543_link_category( $title ) {
$title="title";
return $title;
}
add_filter( 'link_category', 'wpse_147543_link_category' );
Related Posts:
- How can I modify the WordPress default widget output?
- How to hook into unregistering a widget instance?
- Filter Widget Title Wrap
- Is it possible to remove the filter from 4.8 text widget?
- Anyway to edit the titlebar of WordPress Widgets in the Admin area?
- WordPress tag cloud add more links
- How to add a class to Tag cloud widget link?
- How to make a widget expand wider than the column width when editing its settings in the admin
- Warning: Missing argument 2 for widget_title filter
- Add Bootstrap Classes to Recent Posts Widget
- include specific Pages to wp_list_pages with filter
- Shortcodes within the sidebar text/html widget: How to preserve the raw HTML output of the shortcode?
- I’ve set up an extra field for all the available widgets. How do I show it’s value in the front-end?
- Archive Widget – Count only parent posts
- Widget image reorganize layout
- How can I change the button text of a custom widget?
- WordPress Tag Cloud Filter Prevents Widget HTML from loading
- How can I add a prefix to titles displayed in sidebar using function.php?
- Filter WordPress Archive Widget to exclude posts with specific custom taxonomy term id
- Output dynamic_sidebar_params in wp_head
- How to use apply_filters(‘get_calendar’) to change get_calendar() output?
- Filter widget_pages_args not working in Pages Widget
- How to remove a filter that is an anonymous object?
- How to add defer=”defer” tag in plugin javascripts?
- How do filters and hooks really work in PHP
- Trouble understanding apply_filters()
- How would one modify the filtering Gutenberg applies to pasted content?
- Gutenberg: Is there a way to know if current block is inside InnerBlocks?
- No filter of code on switch from html to visual editor, how?
- How to modify posts_where filter only for the search query
- How to wrap oEmbed-embedded video in DIV tags inside the_content?
- How to add filter with 2 args?
- WordPress Internal @ Mentions
- Is it possible to use object in add_action?
- Changing text within the Block Editor
- Add Class to Specific Paragraph of the_content()
- apply_filters() slices away needed arguments
- Search content for shortcodes and get parameters
- How to override the email function by using filters? [closed]
- Remove WPML’s home_url filter
- Is it possible to Hook/Filters Attachment Creation?
- Apply the_title filter to post titles AND backend auto social-sharing plugin, but not nav menu
- How to hook some Unicode texts into calendar widget safely?
- How to add attributes to tag when template cannot be directly modified
- Edit pagination text in the get_the_posts_pagination function
- How does WordPress call functions attached to a certain action hook before calling functions attached to other hooks
- How to get current action?
- how to change appearence of the content of default post list columns?
- Use safety filters even if after applied intval?
- Modify site URL via functions.php of a theme
- When adding buttons to the tinyMCE editor, how do I make them wrap to the next line and/or display in the “Kitchen Sink” area?
- How to change the order (priority) of registered filters (or actions) (e.g. for the_content)?
- How to change the order of HTML output of a core block?
- How to add ‘total’ value to custom column title on the posts list page
- Is it possible to use multiple spaces in title?
- Create Page Template by hook programatically in Functions.php in WP 5.8.1
- Filter out comments with certain meta key/s in the admin backend
- HTML and custom field variable, inside variable
- WordPress custom admin notice still displays after wp_insert_post_data validation
- how to use force_filtered_html_on_import in add_filter?
- Filter Hook callback error, is it due to using $this inside a filter or something else?
- Run posts_where and posts_join only on the main query
- Disadvantage of using filters & hooks multiple times
- How To Override A WooCommerce AJAX Function
- run shortcode in excerpt of single custom post type
- Get The Caller (Plugin / Theme / Core) For All actions & Hook in WordPress
- How to trim white space in search terms?
- Changing the argument of a function
- Add/remove CRON action depending on variable
- Stripping URLs & Email from post submissions
- comment_for() Custom fields not visible when user is logged in
- Filter authors on meta value
- Override email_exists function
- Access post ID in “content_save_pre”
- Remove pretty photo style and script if not exist!
- custom gallery filter with image caption as link title?
- Gallery stripped from excerpt of post
- BuddyPress – A hook available to hide custom born date on public profile view?
- auth_redirect() doesn’t send users to the page where they orginally tried to acces
- the_content getting current page content instead specified ID
- Custom sort orderby question
- Override wordpress audio playlist
- Hook to add content after date in post?
- Add Index to Item in WordPress Gallery
- How to add_filter only when content is not empty?
- filter out
- Filter template text
- WP Dashboard -> Posts-> Filter > BUG!
- How to remove the post pagination (Next page tag) depending on type of traffic source: from utm_campain or non-utm_campain
- add_filter not working inside if function
- How do I disable the warning “The backup of this post in your browser is different from the version below”?
- How to get to the date of the uploaded file
- How to filter posts in admin by before date or by post status ‘future’?
- Custom excerpt_more filter not working when tag is present
- Taxonomy search filters
- NextGEN Gallery: Adding drop-down menu widget to gallery view without modifying plugin code [closed]
- Modify the third (context) parameter in a filter?
- Better way to change the default password reset url with the woocommerce one?
- woocommerce_coupon_is_valid_for_product not working to exclude specific product tag
- Replacing text using add_filter