__CLASS__, 'save-key' => 'id', ); return $classes; } /** * Add custom field type to list * * @param array $cf_types - custom field types array. * @return array */ public static function add_cf_type( $cf_types ) { $cf_types[ self::$slug ] = array( 'label' => esc_attr__( 'HTML', 'supportcandy' ), 'class' => __CLASS__, ); return $cf_types; } /** * Print ticket form field * * @param WPSC_Custom_Field $cf - Custom field object. * @param array $tff - Array of ticket form field settings for this field. * @return string */ public static function print_tff( $cf, $tff ) { if ( ! $cf->default_value ) { return ''; } ob_start();?>
default_value[0] ) ); ?>
default_value = $default_value ? array( $default_value ) : array(); } // save! $cf->save(); } } endif; WPSC_CF_HTML::init();