I am trying to target a specific widget to append a "all news" link below it's list of recent news posts, titles only.
$widget_id is mentioned in the Other Notes for Widget Logic and it seems to be the perfect solution. However, there is no example regarding what to DO with the $widget_id variable within a function.
so far I have:
function all_news_link($content='', $widget_id'){
?><div>TEST</div><?php
return $content;
}
add_filter('widget_content','all_news_link');
I simply want to modify this so that the div with "TEST" in it will only show up on this specific widget with the ID="query-posts-3"