[Plugin: Category Posts Widget] Widget Title Filter Request
-
I had to make the following change in order for the widget to be compatible with a translation plugin.
On the lines that echo the widget title (58 & 60), I had to change this:
$instance["title"]To this:
apply_filters('widget_title',$instance["title"])This filter is used in several other widgets, including the ones that come with WordPress. It is what allows the WPML plugin to determine the title text of a widget in order to translate it. I’m sure is has other uses, as it is not specific to WPML, but I’m having trouble finding documentation on that filter.
Anyhow, please consider adding this modification to your next update in order to increase compatibility with other plugins.
The topic ‘[Plugin: Category Posts Widget] Widget Title Filter Request’ is closed to new replies.