WC_Customer_Download::set_downloads_remaining()
Set downloads_remaining.
Метод класса: WC_Customer_Download{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Customer_Download = new WC_Customer_Download(); $WC_Customer_Download->set_downloads_remaining( $value );
- $value(int|строка) (обязательный)
- Amount of downloads remaining.
Код WC_Customer_Download::set_downloads_remaining() WC Customer Download::set downloads remaining WC 8.7.0
public function set_downloads_remaining( $value ) { $this->set_prop( 'downloads_remaining', '' === $value ? '' : absint( $value ) ); }