WordPress at Your Fingertips
function is not described

ActionScheduler_ListTable::get_recurrence() protected WC 1.0

Returns the recurrence of an action or 'Non-repeating'. The output is human readable.

{} It's a method of the class: ActionScheduler_ListTable{}

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_recurrence( $action );
$action(ActionScheduler_Action) (required)
-

Code of ActionScheduler_ListTable::get_recurrence() WC 6.1.1

protected function get_recurrence( $action ) {
	$schedule = $action->get_schedule();
	if ( $schedule->is_recurring() ) {
		$recurrence = $schedule->get_recurrence();

		if ( is_numeric( $recurrence ) ) {
			/* translators: %s: time interval */
			return sprintf( __( 'Every %s', 'woocommerce' ), self::human_interval( $recurrence ) );
		} else {
			return $recurrence;
		}
	}

	return __( 'Non-repeating', 'woocommerce' );
}