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 |
|---|---|
| 6058 | * |
| 6059 | * Can be used for debug backtracking. |
| 6060 | * |
| 6061 | * @since 6.4.0 |
| 6062 | * |
| 6063 | * @param string $function_name The function that was called. |
| 6064 | * @param string $message A message explaining what has been done incorrectly. |
| 6065 | * @param int $error_level The designated error type for this error. |
| 6066 | */ |
| 6067 | do_action( 'wp_trigger_error_run', $function_name, $message, $error_level ); |
| 6068 | |
| 6069 | if ( ! empty( $function_name ) ) { |
| 6070 | $message = sprintf( '%s(): %s', $function_name, $message ); |
| 6071 | } |
| 6072 | |
| 6073 | $message = wp_kses( |
| 6074 | $message, |
| 6075 | array( |
| 6076 | 'a' => array( 'href' => true ), |