woocommerce_api_key_last_access_datetime

woocommerce_api_key_last_access_datetime

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_api_key_last_access_datetime') is found 2 times:

  • /includes/admin/class-wc-admin-api-keys-table-list.php line 187
    		if ( ! empty( $key['last_access'] ) ) {
    			/* translators: 1: last access date 2: last access time */
    			$date = sprintf( __( '%1$s at %2$s', 'woocommerce' ), date_i18n( wc_date_format(), strtotime( $key['last_access'] ) ), date_i18n( wc_time_format(), strtotime( $key['last_access'] ) ) );
    
    			return apply_filters( 'woocommerce_api_key_last_access_datetime', $date, $key['last_access'] );
    		}
    
    		return __( 'Unknown', 'woocommerce' );
    	}
    
    	/**
    
  • /includes/admin/settings/views/html-keys-edit.php line 98
    						if ( ! empty( $key_data['last_access'] ) ) {
    							/* translators: 1: last access date 2: last access time */
    							$date = sprintf( __( '%1$s at %2$s', 'woocommerce' ), date_i18n( wc_date_format(), strtotime( $key_data['last_access'] ) ), date_i18n( wc_time_format(), strtotime( $key_data['last_access'] ) ) );
    
    							echo esc_html( apply_filters( 'woocommerce_api_key_last_access_datetime', $date, $key_data['last_access'] ) );
    						} else {
    							esc_html_e( 'Unknown', 'woocommerce' );
    						}
    						?>
    						</span>
    					</td>