woocommerce_api_key_last_access_datetime

The WooCommerce woocommerce api key last access datetime hook.

Description

apply_filters( 'woocommerce_api_key_last_access_datetime', (unknown) $date, (unknown) $key_data_last_access ); 

Parameters (2)

0. $date (unknown)
The date.
1. $key_data_last_access (unknown)
The key data last access.

Usage

To run the hook, copy the example below.
  1. $date = apply_filters( 'woocommerce_api_key_last_access_datetime', $date, $key_data_last_access ); 
  2.  
  3. if ( !empty( $date ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the woocommerce_api_key_last_access_datetime callback 
  2. function filter_woocommerce_api_key_last_access_datetime( $date, $key_data_last_access ) { 
  3. // make filter magic happen here... 
  4. return $date
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'woocommerce_api_key_last_access_datetime', 'filter_woocommerce_api_key_last_access_datetime', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'woocommerce_api_key_last_access_datetime', 'filter_woocommerce_api_key_last_access_datetime', 10, 2 ); 

Defined (2)

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

/includes/admin/settings/views/html-keys-edit.php  
  1. echo apply_filters( 'woocommerce_api_key_last_access_datetime', $date, $key_data['last_access'] ); 
/includes/admin/class-wc-admin-api-keys-table-list.php  
  1. return apply_filters( 'woocommerce_api_key_last_access_datetime', $date, $key['last_access'] );