themejunkie / recent-posts-widget-extended

Provides flexible and advanced recent posts widget. Allows you to display them with thumbnails, post excerpt, specific category and more.
https://wordpress.org/plugins/recent-posts-widget-extended/
14 stars 25 forks source link

A better way to filter the $html variable #50

Open FiGOBLAC opened 9 years ago

FiGOBLAC commented 9 years ago

Hello, I wanted redo the the output generated by the $html variable using the same args values originally passed into the rpwe_get_recent_posts() function by the widget form instance. The easiest way for me to recreate the $html output with the same args was to also pass the $args value along with $html variable in the filter. Currently you have a rpwe_markup filter that passes just the $html variable. Is it possible that you add the $args as well? or will that cause an error somewhere?

Thanks

gasatrya commented 9 years ago

Oh, I'm sorry for late reply. Yeah I think it need to add $args inside the filter, I've not work with this filter since the plugin release.

FiGOBLAC commented 9 years ago

Okay Thanks, If I get some time I will do a PR..