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.
This hook occurs 2 times in this file.
| Line | Code |
|---|---|
| 167 | _wp_ajax_menu_quick_search( $_REQUEST ); |
| 168 | |
| 169 | exit; |
| 170 | break; |
| 171 | case 'oembed-cache' : |
| 172 | $return = ( $wp_embed->cache_oembed( $_GET['post'] ) ) ? '1' : '0'; |
| 173 | die( $return ); |
| 174 | break; |
| 175 | default : |
| 176 | do_action( 'wp_ajax_' . $_GET['action'] ); |
| 177 | die('0'); |
| 178 | break; |
| 179 | endswitch; |
| 180 | endif; |
| 181 | |
| 182 | /** |
| 183 | * Sends back current comment total and new page links if they need to be updated. |
| 184 | * |
| 185 | * Contrary to normal success AJAX response ("1"), die with time() on success. |
| Line | Code |
| 1462 | die( '0' ); |
| 1463 | break; |
| 1464 | case 'date_format' : |
| 1465 | die( date_i18n( sanitize_option( 'date_format', $_POST['date'] ) ) ); |
| 1466 | break; |
| 1467 | case 'time_format' : |
| 1468 | die( date_i18n( sanitize_option( 'time_format', $_POST['date'] ) ) ); |
| 1469 | break; |
| 1470 | default : |
| 1471 | do_action( 'wp_ajax_' . $_POST['action'] ); |
| 1472 | die('0'); |
| 1473 | break; |
| 1474 | endswitch; |
| 1475 | ?> |
| 1476 | |