You appear to be a bot. Output may be restricted
Description
Give a key, store the value
Usage
$void = EDD_Tools_Recount_Single_Customer_Stats::store_data( $key, $value );
Parameters
- $key
- ( string ) required – The option_name
- $value
- ( mixed ) required – The value to store
Returns
void
Source
File name: easy-digital-downloads/includes/admin/tools/class-edd-tools-recount-single-customer-stats.php
Lines:
1 to 17 of 17
private function store_data( $key, $value ) { global $wpdb; $value = is_array( $value ) ? wp_json_encode( $value ) : esc_attr( $value ); $data = array( 'option_name' => $key, 'option_value' => $value, 'autoload' => 'no', ); $formats = array( '%s', '%s', '%s', ); $wpdb->replace( $wpdb->options, $data, $formats ); }