Function Reference: geodir_payment_cart_post_type

Summary

This function has not been documented yet.

Source Code

function geodir_payment_cart_post_type( $cart_id ) {
	$cart = geodir_get_invoice( $cart_id );
	
	if ( empty( $cart ) ) {
		return NULL;
	}
	
	$post_type = get_post_type( $cart->post_id );
	
	return $post_type;
}