Bootstraps the element type by setting properties.
Description
See also
Source
File: src/db-objects/elements/element-types/base/content.php
protected function bootstrap() { $this->slug = 'content'; $this->title = __( 'Content', 'torro-forms' ); $this->description = __( 'A non-input element to display custom content.', 'torro-forms' ); $this->icon_svg_id = 'torro-icon-content'; $this->settings_fields['label']['type'] = 'wysiwyg'; $this->settings_fields['label']['label'] = __( 'Content', 'torro-forms' ); $this->settings_fields['label']['description'] = __( 'Enter the content to display.', 'torro-forms' ); $this->settings_fields['label']['media_buttons'] = true; $this->add_css_classes_settings_field(); }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |