WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 22 | var $default_version; |
| 23 | var $text_direction = 'ltr'; |
| 24 | var $concat = ''; |
| 25 | var $concat_version = ''; |
| 26 | var $do_concat = false; |
| 27 | var $print_html = ''; |
| 28 | var $default_dirs; |
| 29 | |
| 30 | function __construct() { |
| 31 | do_action_ref_array( 'wp_default_styles', array(&$this) ); |
| 32 | } |
| 33 | |
| 34 | function do_item( $handle ) { |
| 35 | if ( !parent::do_item($handle) ) |
| 36 | return false; |
| 37 | |
| 38 | $ver = $this->registered[$handle]->ver ? $this->registered[$handle]->ver : $this->default_version; |
| 39 | if ( isset($this->args[$handle]) ) |
| 40 | $ver .= '&' . $this->args[$handle]; |