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 |
|---|---|
| 2701 | else |
| 2702 | $object = call_user_func( $lookup, $object ); |
| 2703 | } |
| 2704 | return sprintf( $trans[$verb][$noun][0], esc_html($object) ); |
| 2705 | } else { |
| 2706 | return $trans[$verb][$noun][0]; |
| 2707 | } |
| 2708 | } |
| 2709 | |
| 2710 | return apply_filters( 'explain_nonce_' . $verb . '-' . $noun, __( 'Are you sure you want to do this?' ), isset($matches[4]) ? $matches[4] : '' ); |
| 2711 | } else { |
| 2712 | return apply_filters( 'explain_nonce_' . $action, __( 'Are you sure you want to do this?' ) ); |
| 2713 | } |
| 2714 | } |
| 2715 | |
| 2716 | /** |
| 2717 | * Display "Are You Sure" message to confirm the action being taken. |
| 2718 | * |
| 2719 | * If the action has the nonce explain message, then it will be displayed along |