$items['customer-logout'] ) : array(); unset( $items['customer-logout'] ); return $items + array( self::ENDPOINT => __( 'Subscriptions', 'agentaos-payments' ) ) + $logout; } public static function render() { $orders = self::subscriptions( get_current_user_id() ); if ( ! $orders ) { echo '
' . esc_html__( 'You have no subscriptions.', 'agentaos-payments' ) . '
'; return; } echo '| ' . esc_html__( 'Plan', 'agentaos-payments' ) . ' | ' . esc_html__( 'Status', 'agentaos-payments' ) . ' | ' . esc_html__( 'Renews or ends', 'agentaos-payments' ) . ' | |
|---|---|---|---|
| ' . esc_html( $item ? $item->get_name() : '' ) . ' | '; echo '' . esc_html( $canceling ? __( 'Cancels at period end', 'agentaos-payments' ) : ucfirst( str_replace( '_', ' ', $status ) ) ) . ' | '; echo '' . esc_html( $date ) . ' | '; if ( ! $canceling && in_array( $status, array( 'active', 'trialing', 'past_due' ), true ) ) { echo ''; } echo ' |