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 |
|---|---|
| 34 | |
| 35 | $this->add( 'tiny_mce', '/wp-includes/js/tinymce/tiny_mce_gzip.php', false, '20070528' ); |
| 36 | $mce_config = apply_filters('tiny_mce_config_url', '/wp-includes/js/tinymce/tiny_mce_config.php'); |
| 37 | $this->add( 'wp_tiny_mce', $mce_config, array('tiny_mce'), '20070528' ); |
| 38 | |
| 39 | $this->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.5.1.1'); |
| 40 | |
| 41 | $this->add( 'autosave', '/wp-includes/js/autosave.js', array('prototype', 'sack'), '20070306'); |
| 42 | $this->localize( 'autosave', 'autosaveL10n', array( |
| 43 | 'autosaveInterval' => apply_filters('autosave_interval', '120'), |
| 44 | 'errorText' => __('Error: %response%'), |
| 45 | 'saveText' => __('Saved at %time%.'), |
| 46 | 'requestFile' => get_option( 'siteurl' ) . '/wp-admin/admin-ajax.php', |
| 47 | 'savingText' => __('Saving Draft...') |
| 48 | ) ); |
| 49 | |
| 50 | $this->add( 'wp-ajax', '/wp-includes/js/wp-ajax.js', array('prototype'), '20070306'); |
| 51 | $this->localize( 'wp-ajax', 'WPAjaxL10n', array( |
| 52 | 'defaultUrl' => get_option( 'siteurl' ) . '/wp-admin/admin-ajax.php', |