You appear to be a bot. Output may be restricted
Description
Retrieve count of total users with keys
Usage
$int = EDD_API_Keys_Table::total_items();
Parameters
Returns
int
Source
File name: easy-digital-downloads/includes/admin/class-api-keys-table.php
Lines:
1 to 12 of 12
public function total_items() { global $wpdb; if ( ! get_transient( 'edd_total_api_keys' ) ) { $total_items = $wpdb->get_var( "SELECT count(user_id) FROM {$wpdb->usermeta} WHERE meta_value='edd_user_secret_key'" ); set_transient( 'edd_total_api_keys', $total_items, 60 * 60 ); } return get_transient( 'edd_total_api_keys' ); }