WithdrawalsList::column_withdraw_method( $item )


Source

File: classes/WithdrawalsList.php

	function column_withdraw_method( $item ) {
		if ( $item->method_data ) {
			$data = maybe_unserialize( $item->method_data );

			$method_name = dozent_array_get( 'withdraw_method_name', $data );

			if ( $method_name ) {
				echo "<p><strong>{$method_name}</strong></p>";
			}

			unset( $data['withdraw_method_key'], $data['withdraw_method_name'] );

			if ( dozent_count( $data ) ) {
				foreach ( $data as $method_field ) {
					$label = dozent_array_get( 'label', $method_field );
					$value = dozent_array_get( 'value', $method_field );
					echo "<p class='withdraw-method-data-row'> <span class='withdraw-method-label'>{$label}</span> : <span class='withdraw-method-value'>{$value}</span> </p>";
				}
			}

		}

		return '';
	}