Element_Type::add_css_classes_settings_field( string $section = 'settings' )

Adds a settings field for specifying additional CSS classes for the input.

Description

See also

Parameters

$section

(string) (Optional) Settings section the settings field should be part of.

Default value: 'settings'

Source

File: src/db-objects/elements/element-types/element-type.php

	protected function add_css_classes_settings_field( $section = 'settings' ) {
		$this->settings_fields['css_classes'] = array(
			'section'       => $section,
			'type'          => 'text',
			'label'         => __( 'CSS Classes', 'torro-forms' ),
			'description'   => __( 'Additional CSS Classes separated by whitespaces.', 'torro-forms' ),
			'input_classes' => array( 'regular-text' ),
		);
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.