woocommerce_downloadable_product_download_log_insert

woocommerce_downloadable_product_download_log_insert

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_downloadable_product_download_log_insert') is found 1 times:

  • /includes/data-stores/class-wc-customer-download-log-data-store.php line 61
    			apply_filters( 'woocommerce_downloadable_product_download_log_insert_data', $data ),
    			apply_filters( 'woocommerce_downloadable_product_download_log_insert_format', $format, $data )
    		);
    
    		do_action( 'woocommerce_downloadable_product_download_log_insert', $data );
    
    		if ( $result ) {
    			$download_log->set_id( $wpdb->insert_id );
    			$download_log->apply_changes();
    		} else {
    			wp_die( esc_html__( 'Unable to insert download log entry in database.', 'woocommerce' ) );
    

See this hook used in plugins: