Skip to content

Commit 4ab0ad3

Browse files
committed
removed duplicate function
1 parent 7baff21 commit 4ab0ad3

1 file changed

Lines changed: 0 additions & 29 deletions

File tree

models/OrderModel.php

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2166,33 +2166,4 @@ public static function pay_now_link( $order_id, $display = true ) {
21662166
return $link;
21672167
}
21682168
}
2169-
2170-
/**
2171-
* Render order status badge.
2172-
*
2173-
* @since 4.0.0
2174-
*
2175-
* @param string $status order status.
2176-
*
2177-
* @return void
2178-
*/
2179-
public static function render_order_status_badge( $status ) {
2180-
2181-
switch ( $status ) {
2182-
case self::ORDER_INCOMPLETE:
2183-
$badge_class = 'default';
2184-
break;
2185-
case 'canceled':
2186-
case self::ORDER_CANCELLED:
2187-
case self::ORDER_TRASH:
2188-
$badge_class = 'error';
2189-
break;
2190-
case self::ORDER_COMPLETED:
2191-
$badge_class = 'success';
2192-
break;
2193-
}
2194-
2195-
$label = tutor_utils()->translate_dynamic_text( $status );
2196-
Badge::make()->label( $label )->rounded()->attr( 'class', 'tutor-badge-' . $badge_class )->render();
2197-
}
21982169
}

0 commit comments

Comments
 (0)