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 |
|---|---|
| 6100 | * |
| 6101 | * Can be used for debug backtracking. |
| 6102 | * |
| 6103 | * @since 6.4.0 |
| 6104 | * |
| 6105 | * @param string $function_name The function that was called. |
| 6106 | * @param string $message A message explaining what has been done incorrectly. |
| 6107 | * @param int $error_level The designated error type for this error. |
| 6108 | */ |
| 6109 | do_action( 'wp_trigger_error_run', $function_name, $message, $error_level ); |
| 6110 | |
| 6111 | if ( ! empty( $function_name ) ) { |
| 6112 | $message = sprintf( '%s(): %s', $function_name, $message ); |
| 6113 | } |
| 6114 | |
| 6115 | $message = wp_kses( |
| 6116 | $message, |
| 6117 | array( |
| 6118 | 'a' => array( 'href' => true ), |