Action hook 'akismet_https_request_pre'

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

View Source

akismet_https_request_pre

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 1475

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

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

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

Source Code Context

wp-content/plugins/akismet/class.akismet.php:1475 - How this hook is used in WordPress core
<?php
1470  		}
1471  
1472  		if ( ! $ssl_disabled && ( $ssl = wp_http_supports( array( 'ssl' ) ) ) ) {
1473  			$akismet_url = set_url_scheme( $akismet_url, 'https' );
1474  
1475  			do_action( 'akismet_https_request_pre' );
1476  		}
1477  
1478  		$response = wp_remote_post( $akismet_url, $http_args );
1479  
1480  		self::log( compact( 'akismet_url', 'http_args', 'response' ) );

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.