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 |
---|---|
6004 | * |
6005 | * Can be used for debug backtracking. |
6006 | * |
6007 | * @since 6.4.0 |
6008 | * |
6009 | * @param string $function_name The function that was called. |
6010 | * @param string $message A message explaining what has been done incorrectly. |
6011 | * @param int $error_level The designated error type for this error. |
6012 | */ |
6013 | do_action( 'wp_trigger_error_run', $function_name, $message, $error_level ); |
6014 |
|
6015 | if ( ! empty( $function_name ) ) { |
6016 | $message = sprintf( '%s(): %s', $function_name, $message ); |
6017 | } |
6018 |
|
6019 | $message = wp_kses( |
6020 | $message, |
6021 | array( |
6022 | 'a' => array( 'href' ), |