
WordPress主题开发入门基础教程
apply_filters( 'pre_wp_update_https_detection_errors', null )
pre_wp_update_https_detection_errors是一个过滤器钩子,用于在数据库中更新HTTPS检测错误之前过滤它们。这个过滤器可以用来修改HTTPS检测错误或阻止更新。
短路检测与HTTPS支持相关的错误的过程。
从过滤器中返回WP_Error
将有效地缩短通过HTTPS向站点尝试远程请求的默认逻辑,而是存储返回的WP_Error
中的错误数组。
$support_errors = apply_filters( 'pre_wp_update_https_detection_errors', null );