Skip to content
etheon edited this page Sep 12, 2010 · 5 revisions

Filters

Filters are a particularly useful form of Triggers; they’re used mostly to modify – or filter – a given object (i.e.: the current post object).

Here’s what I hope is a comprehensive list of filters with their locations, targets and definitions.

Filter Definition Used in Targets
Filter:Admin Determine Action admin_determine_action() Admin.php:90 $route->action
Filter:Admin Subnav admin_subnav() Admin.php:2164 $subnav
Filter:Bookmarklet Submit Options bookmarklet_submit_options() Post.php:210 $options
Filter:Bookmarklet Submit Values bookmarklet_submit_values() Post.php:209 $values
Filter:Excerpt excerpt(Post $post) Post.php:559 $excerpt
Filter:Export export() Admin.php:1015 $exports
Filter:Extend Nav extend_nav() Admin.php:2153 $subnav["extend"]
Filter:Feed Content feed_content(Post $post) Post.php:576 $feed_content
Filter:Feed Url feed_url(Post $post) feed.php:33 $url
Filter:Filter Post filter_post() Post.php:636 Post $this
Filter:Flash Message flash_message($redirect_to) Flash.php:63 $message
Filter:Flash Notice Message flash_notice_message($redirect_to) Flash.php:80 $message
Filter:Flash Warning Message flash_warning_message($redirect_to) Flash.php:100 $message
Filter:Group group() Group.php:30 Group $this
Filter:Keyword Search keyword_search($query, $plain) helpers.php:1381 $keywords
Filter:Link Regexp link_regexp() helpers.php:623 $regexp
Filter:Manage Nav manage_nav() Admin.php:2116 $subnav["manage"]
Filter:Nav Selected nav_selected() Admin.php:2266 $this->context["selected"]
Filter:Page page() Page.php:40 Page $this
Filter:Page Export Url page_export_url(Page $page) Admin.php:955 $url
Filter:Pages Export pages_export(Page $page) Admin.php:970 $pages_atom
Filter:Parse Urls parse_urls() Route.php:144 $urls
Filter:Post post() Post.php:93 Post $this
Filter:Post Export Url post_export_url(Post $post) Admin.php:893 $url
Filter:Post Url Token post_url_token() Post.php:692 $tokens
Filter:Posts Export posts_export(Post $post) Admin.php:912 $posts_atom
Filter:Scripts scripts() Theme.php:241 $javascripts
Filter:Send Mail send_mail() helpers.php:1577 $function
Filter:Settings Nav settings_nav() Admin.php:2143 $subnav["settings"]
Filter:Stylesheets stylesheets() Theme.php:179 $stylesheets
Filter:Title title(Post $post) Post.php:542 $title
Filter:Title From Excerpt title_from_excerpt() Post.php:517 $excerpt
Filter:Url Code url_code() Main.php:222 Post::$url_attrs
Filter:Url Vals url_vals(Post $this) Post.php:497 $vals
Filter:User user() User.php:24 User $this
Filter:Visitor visitor() common.php:285 $visitor
Filter:Xmlrpc Methods xmlrpc_methods() xmlrpc.php:43 $methods
Clone this wiki locally