Action hook 'akismet_request_failure'

in WP Core File wp-content/plugins/akismet/class.akismet.php at line 1507

View Source

akismet_request_failure

Action Hook
Description
Try SSL first; if that fails, try without it and don't try it again for a while.

Hook Information

File Location wp-content/plugins/akismet/class.akismet.php View on GitHub
Hook Type Action
Line Number 1507

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into akismet_request_failure
add_action('akismet_request_failure', 'my_custom_function');

function my_custom_function() {
    // Your custom code here
}

Source Code Context

wp-content/plugins/akismet/class.akismet.php:1507 - How this hook is used in WordPress core
<?php
1502  				self::log( compact( 'http_akismet_url', 'http_args', 'response' ) );
1503  			}
1504  		}
1505  
1506  		if ( is_wp_error( $response ) ) {
1507  			do_action( 'akismet_request_failure', $response );
1508  
1509  			return array( '', '' );
1510  		}
1511  
1512  		if ( $ssl_failed ) {

PHP Documentation

<?php
/**
		 * Try SSL first; if that fails, try without it and don't try it again for a while.
		 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-content/plugins/akismet/class.akismet.php
Related Hooks

Related hooks will be displayed here in future updates.