[wp-hackers] requesting information about wp_*_style functions

Krusty Ruffle krustyruffle at rustykruffle.com
Thu Oct 30 06:24:45 GMT 2008


Ahh... So the conditional would probably be a good idea then. If I'm
thinking strait then this:

        if ( !did_action( 'wp_print_styles' ))
            add_action( 'wp_head', 'wp_print_styles', '100');

would cause my code to only add the action if wp_print_styles has not
already been called... Or would it be better to use a version check and hook
into wp_print_styles?

On Thu, Oct 30, 2008 at 1:42 AM, DD32 <wordpress at dd32.id.au> wrote:

> Just a FYI:
> As of WordPress 2.7, The Print styles hook is included in core for
> front-end requests too:
>
> http://trac.wordpress.org/browser/trunk/wp-includes/default-filters.php#L165
>

<snip>


More information about the wp-hackers mailing list