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 |
|---|---|
| 5995 | * Returning a `WP_Error` from the filter will effectively short-circuit the default logic of trying a remote |
| 5996 | * request to the site over HTTPS, storing the errors array from the returned `WP_Error` instead. |
| 5997 | * |
| 5998 | * @since 5.7.0 |
| 5999 | * @deprecated 6.4.0 The `wp_update_https_detection_errors` filter is no longer used and has been replaced by `pre_wp_get_https_detection_errors`. |
| 6000 | * |
| 6001 | * @param null|WP_Error $pre Error object to short-circuit detection, |
| 6002 | * or null to continue with the default behavior. |
| 6003 | */ |
| 6004 | $support_errors = apply_filters( 'pre_wp_update_https_detection_errors', null ); |
| 6005 | if ( is_wp_error( $support_errors ) ) { |
| 6006 | update_option( 'https_detection_errors', $support_errors->errors, false ); |
| 6007 | return; |
| 6008 | } |
| 6009 | |
| 6010 | $support_errors = wp_get_https_detection_errors(); |
| 6011 | |
| 6012 | update_option( 'https_detection_errors', $support_errors ); |
| 6013 | } |