Explanation of WP filters and wp_head()? (Black-boxing aggrss and lastRSS) (4 posts)

  1. riddle
    Posted 11 years ago #

    I'm probably missing something obvious, but I can't seem to find an explanation of the concepts behind WP filters. I see lots of calls in the WP code to functions that mess with filters but without a clue I can't make much sense of them. Are the basic ideas documented anywhere besides this bare list?

    This comes up because I'm trying to figure out what goes on behind the scenes in the infamous wp_head() call required by all plugins. That call evaluates to apply_filters('wp_head', '') at which point I lose the trail.

    And that question in turn stems from the thing I'm really trying to do, which is clone the bare minimum environment needed to run aggrss and lastRSS in a non-WP setting. I'm happily using them in my WP blog and would like to do so in another context as well. It looks at first glance like they don't really use much WP infrastructure, but then I run into the classic undefined function: get() error that points to wp_head(). Details about what I'm trying to do are in my comments on Per Soederlind's aggrss page. Suggestions welcome!

  2. riddle
    Posted 11 years ago #

    Okay, I'm still looking for a bit of background on the filter model, but meanwhile I solved my problem with calling aggrss and lastRSS from a non-WordPress environment. Check Per's page or contact me privately if you're interested.

  3. richardc020
    Posted 11 years ago #

    I need wp_head() documentation to figure out what it really does.

    Add: I wish the Wiki were hyperlinked to from either the more obvious http://wordpress.org/support/ or http://wordpress.org/ though I took a guess and typed out http://wiki.wordpress.org/ and it worked, but again there's neither wp_head() documentation there or at http://wiki.wordpress.org/?pagename=UserManual or wherever it may be nor am I willing to unravel the mystery of wp_head() and document it myself at risk of being wrong.

  4. jadler
    Posted 10 years ago #

    riddle: There is more information, but not a current list of hooks, at http://wiki.wordpress.org/?pagename=Plugin%2FAPI

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.