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 |
|---|---|
| 6083 | * |
| 6084 | * Can be used for debug backtracking. |
| 6085 | * |
| 6086 | * @since 6.4.0 |
| 6087 | * |
| 6088 | * @param string $function_name The function that was called. |
| 6089 | * @param string $message A message explaining what has been done incorrectly. |
| 6090 | * @param int $error_level The designated error type for this error. |
| 6091 | */ |
| 6092 | do_action( 'wp_trigger_error_run', $function_name, $message, $error_level ); |
| 6093 | |
| 6094 | if ( ! empty( $function_name ) ) { |
| 6095 | $message = sprintf( '%s(): %s', $function_name, $message ); |
| 6096 | } |
| 6097 | |
| 6098 | $message = wp_kses( |
| 6099 | $message, |
| 6100 | array( |
| 6101 | 'a' => array( 'href' => true ), |