Modify titles only for posts shown in the Recent Posts widget
-
Hi! I have a plugin which highlights unread posts on the blog by adding a bit of markup to their titles. It uses the
the_title
filter and only works whenin_the_loop()
returnstrue
.I got a request to make the highlight feature also work in the Recent Posts widget. My question is: how can I determine that this particular widget is being shown at this very moment? Or is there any other trick I can use to “hijack” that specific widget?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Modify titles only for posts shown in the Recent Posts widget’ is closed to new replies.