Determine if a recurring order has a limited number of payments

Return Return

(boolean) Returns true for recurring orders with a billing length and false otherwise.

Top ↑

Source Source

File: includes/models/model.llms.order.php

	public function has_plan_expiration() {
		return ( $this->is_recurring() && ( $this->get( 'billing_length' ) > 0 ) );

Top ↑

Changelog Changelog

Version Description
5.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.