Function Reference: geodir_payment_get_sub_num_trial_units

Summary

This function has not been documented yet.

Source Code

function geodir_payment_get_sub_num_trial_units( $default = 'D', $options_html = true  ) {
	$options = array();
	$options['D'] = __( 'Day(s)', 'geodir_payments' );
	$options['W'] = __( 'Week(s)', 'geodir_payments' );
	$options['M'] = __( 'Month(s)', 'geodir_payments' );
	$options['Y'] = __( 'Years(s)', 'geodir_payments' );
	
	$return = $options;
	if ( $options_html ) {
		$return = '';
		foreach ( $options as $value => $label ) {
			$selected = $value == $default ? 'selected="selected"' : '';
			$return .= '<option value="' . $value . '" ' . $selected . '>' . $label . '</option>';
		}
	}
	
	return $return;
}