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