atd_http_post_error

Fires when there is a post error to AtD.

Description

do_action( 'atd_http_post_error', (string) $http_error ); 

Parameters (1)

0. $http_error (string) => 'http-error'
Http-error The error that AtD runs into.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'atd_http_post_error', $http_error ); 
The following example is for adding a hook callback.
  1. // define the atd_http_post_error callback 
  2. function action_atd_http_post_error( $http_error ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'atd_http_post_error', 'action_atd_http_post_error', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'atd_http_post_error', 'action_atd_http_post_error', 10, 1 ); 

Defined (2)

The action is defined in the following location(s).

/modules/after-the-deadline/proxy.php  
  1. do_action( 'atd_http_post_error', 'http-error' ); 
  1. do_action( 'atd_http_post_error', $code );