Action hook 'akismet_ssl_disabled'

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

View Source

akismet_ssl_disabled

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 1469

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

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

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

Source Code Context

wp-content/plugins/akismet/class.akismet.php:1469 - How this hook is used in WordPress core
<?php
1464  
1465  		if ( $ssl_disabled && $ssl_disabled < ( time() - 60 * 60 * 24 ) ) { // 24 hours
1466  			$ssl_disabled = false;
1467  			delete_option( 'akismet_ssl_disabled' );
1468  		} elseif ( $ssl_disabled ) {
1469  			do_action( 'akismet_ssl_disabled' );
1470  		}
1471  
1472  		if ( ! $ssl_disabled && ( $ssl = wp_http_supports( array( 'ssl' ) ) ) ) {
1473  			$akismet_url = set_url_scheme( $akismet_url, 'https' );
1474  

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.