add-filter

wordpress: add the categories to a post rss title

I would like that the RSS entries titles be like this: "this is the post title [category1, category4]" In square brackets are listed the categories in which the post is filed. I first modified the wp-feed.php file, but it's dirty: every wordpress update will erase my changes. So i think i can do this via add_filter. I set it up like t...

How Do I Restrict All WordPress Widgets To A Given Category?

How do I restrict all WordPress widgets to a given category? Such as, have a popdown listbox on my sidebar that lets me choose a bird category and all the widget data on that sidebar stick with that given bird category. I'm thinking I need some kind of filter with add_filter() but don't understand the process. The docs on this are incomp...

Intercept WordPress Admin Dashboard for Alerts

How can I make a plugin send an alert to one's dashboard at the top right below where the WordPress upgrade notice might normally appear? I imagine I need some kind of add_filter() or add_action() call in the plugins' code. ...

Hooking into comment_text() to add surrounding tag

Trying to hook into the function comment_text() supplied by Wordpress API to wrap the output of every comment into a <div>...</div> container I am running into the following problem: Without my added filter the output of comment_text() looks like this: <p>Hello User!</p> <p>Thank you for your comment.</p> <p>Stefan</p> Thats fine but...

wordpress add_filter problem

Hi, I am trying to write a simple plugin to wordpress but i have a problem. this is the plugin: function replace_css_php($text){ return str_replace(".css",".php",$text); } add_filter('bloginfo', 'replace_css_php', 1, 1); add_filter('bloginfo_url', 'replace_css_php', 1, 2); the problems is that other plugins (not my plugins), ad...

How do I stop Wordpress dashboard widgets from being dragged?

I'm setting up Wordpress 3.0.1 for a novice user. The Dashboard widgets are appropriately placed, and I'd like them to stay that way. As far as I know, there's no add_filter or add_action hook to prevent dragging, so another approach would be to make a plugin that uses jQuery to disable dragging. What handler(s) would I override -- click...