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 |
|---|---|
| 37 | |
| 38 | $mce_buttons_3 = apply_filters('mce_buttons_3', array()); |
| 39 | $mce_buttons_3 = implode($mce_buttons_3, ','); |
| 40 | |
| 41 | $mce_browsers = apply_filters('mce_browsers', array('msie', 'gecko', 'opera', 'safari')); |
| 42 | $mce_browsers = implode($mce_browsers, ','); |
| 43 | |
| 44 | $mce_popups_css = get_option('siteurl') . '/wp-includes/js/tinymce/plugins/wordpress/popups.css'; |
| 45 | $mce_css = get_option('siteurl') . '/wp-includes/js/tinymce/plugins/wordpress/wordpress.css'; |
| 46 | $mce_css = apply_filters('mce_css', $mce_css); |
| 47 | if ( $_SERVER['HTTPS'] == 'on' ) { |
| 48 | $mce_css = str_replace('http://', 'https://', $mce_css); |
| 49 | $mce_popups_css = str_replace('http://', 'https://', $mce_popups_css); |
| 50 | } |
| 51 | |
| 52 | $mce_locale = ( '' == get_locale() ) ? 'en' : strtolower(get_locale()); |
| 53 | ?> |
| 54 | |
| 55 | initArray = { |