shutdown

The Jetpack by WordPress.com shutdown hook.

Description

add_action( 'shutdown', (string) $stats_footer, (int) $int ); 

Parameters (2)

0. $stats_footer (string) => 'stats_footer'
The stats footer.
1. $int (int) => 101
The int.

Usage

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

Defined (9)

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

/modules/stats.php  
  1. add_action( 'shutdown', 'stats_footer', 101 ); 
/modules/markdown/easy-markdown.php  
  1. add_action( 'shutdown', array( $this, 'uncache_munged_posts' ) ); 
/class.json-api.php  
  1. add_action( 'shutdown', array( $this, 'output_trapped_error' ), 0 ); 
/class.jetpack.php  
  1. add_action( 'shutdown', array( 'Jetpack', 'catch_errors_on_shutdown' ), 0 ); 
  1. add_action( 'shutdown', array( 'Jetpack', 'xmlrpc_async_call' ) ); 
/class.jetpack-sync.php  
  1. add_action( 'shutdown', array( $this, 'sync' ), 9 ); // Right before async XML-RPC 
  1. add_action( 'shutdown', array( $this, 'register_all_options' ), 8 ); 
  1. add_action( 'shutdown', array( $this, 'register_all_module_constants' ), 8 ); 
/class.jetpack-autoupdate.php  
  1. add_action( 'shutdown', array( $this, 'log_results' ) );