akismet_https_request_failure

akismet_https_request_failure

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.5.2

do_action('akismet_https_request_failure') is found 2 times:

  • /wp-content/plugins/akismet/class.akismet.php line 1390
     
    		Akismet::log( compact( 'akismet_url', 'http_args', 'response' ) );
    
    		if ( $ssl && is_wp_error( $response ) ) {
    			do_action( 'akismet_https_request_failure', $response );
    
    			// Intermittent connection problems may cause the first HTTPS
    			// request to fail and subsequent HTTP requests to succeed randomly.
    			// Retry the HTTPS request once before disabling SSL for a time.
    			$response = wp_remote_post( $akismet_url, $http_args );
    
    
  • /wp-content/plugins/akismet/class.akismet.php line 1402
     
    			if ( is_wp_error( $response ) ) {
    				$ssl_failed = true;
    
    				do_action( 'akismet_https_request_failure', $response );
    
    				do_action( 'akismet_http_request_pre' );
    
    				// Try the request again without SSL.
    				$response = wp_remote_post( $http_akismet_url, $http_args );