This hook is fired by the header.php
script, which is loaded by a call to head() while it is populating the <head>
tag for the public theme. Functions attaching to this hook can directly output HTML into the <head>
, or use functions like queue_css() and queue_js().
Arguments
- Zend_Controller_Request_Http
$request
{{#if - | (optional)}}
- {{#if: | Default:
{{{default}}}
}}
Example(s)
add_plugin_hook('public_theme_header', 'my_plugin_public_theme_header'); function my_plugin_public_theme_header($request) { queue_css('my-stylesheet'); }