LLMS_Admin_Tool_Recurring_Payment_Rescheduler::get_description()

Retrieve a description of the tool


Description Description

This is displayed on the right side of the tool’s list before the button.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/admin/tools/class-llms-admin-tool-recurring-payment-rescheduler.php

	protected function get_description() {

		$orders = $this->get_orders();
		$count  = wp_cache_get( sprintf( '%s-total-results', $this->id ), 'llms_tool_data' );

		$desc  = __( 'Check active recurring orders to ensure their recurring payment action is properly scheduled for the next payment. If a recurring payment is due and not scheduled it will be rescheduled.', 'lifterlms' );
		$desc .= ' ';
		// Translators: %d = the number of pending batches.
		$desc .= sprintf(
			_n(
				'There is %d order that will be checked.',
				'There are %d orders that will be checked in batches of 50.',
				$count,
				'lifterlms'
			),
			$count
		);

		return $desc;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
4.7.0 Modified language and use count from FOUND_ROWS().
4.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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