You appear to be a bot. Output may be restricted
Description
Increase the earnings by the given amount
Usage
$float = EDD_Download::increase_earnings( $amount );
Parameters
- $amount
- ( int|float ) optional – Amount to increase the earnings by
Returns
float New number of total earnings
Source
File name: easy-digital-downloads/includes/class-edd-download.php
Lines:
1 to 18 of 18
public function increase_earnings( $amount = 0 ) { $current_earnings = $this->get_earnings(); $new_amount = apply_filters( 'edd_download_increase_earnings_amount', $current_earnings + (float) $amount, $current_earnings, $amount, $this ); if ( $this->update_meta( '_edd_download_earnings', $new_amount ) ) { $this->earnings = $new_amount; do_action( 'edd_download_increase_earnings', $this->ID, $this->earnings, $this ); return $this->earnings; } return false; }