Function Reference: geodir_payment_invoice_type_name

Summary

This function has not been documented yet.

Source Code

function geodir_payment_invoice_type_name( $type ) {
	$invoice_types = geodir_payment_invoice_types( false );
	
	$type = $type != '' ? $type : 'add_listing';
	
	if ( $type != '' ) {
		$type = isset( $invoice_types[$type] ) ? $invoice_types[$type] : __( $type, 'geodir_payments' );
	}
	
	return $type;
}