1. Home
  2. Docs
  3. WordPress Studio Framework
  4. Framework Fields
  5. Additional Fields

Additional Fields

Heading Fields

Arguments

NameTypeDefaultDescription
typestringheadingType of the field
contentstring The content of the field

Heading Field Example

array(
  'type' => 'heading',
  'content' => 'This is a heading field',
),

Subheading Fields

Arguments

NameTypeDefaultDescription
typestringsubheadingType of the field
contentstring The content of the field

Heading Field Example

array(
  'type' => 'subheading',
  'content' => 'This is a subheading field',
),

Submessage Fields

Arguments

NameTypeDefaultDescription
typestringsubmessageType of the field
stylestringnormalThe style of the field (normal, success, info, warning, danger)
contentstrong The content of the field

Submessage Field Example

array(
  'type' => 'submessage',
  'style' => 'success',
  'content' => 'This is a successful submessage!',
),

Notice Fields

Arguments

NameTypeDefaultDescription
typestringnoticeType of the field
stylestringnormalThe style of the field (normal, success, info, warning, danger)
contentstrong The content of the field

Notice Field Example

array(
  'type' => 'notice',
  'style' => 'warning',
  'content' => 'This is a warning notice!',
),

Content Fields

Arguments

NameTypeDefaultDescription
typestringcontentType of the field
contentstring The content of the field

Content Field Example

array(
  'type' => 'content',
  'content' => 'This is a content field that can take HTML code',
),
Was this article helpful to you? Yes No

How can we help?