Gets the CSS class to use for notices.
Description
See also
Parameters
- $type
-
(string) (Optional) Notice type. Either 'success', 'info', 'warning' or 'error'.
Default value: 'warning'
Return
(string) CSS class to use for notices of the given type.
Source
File: src/db-objects/forms/form-frontend-output-handler.php
protected function get_notice_class( $type = 'warning' ) { /** * Filters the CSS class to use for notices. * * @since 1.0.0 * * @param string $notice_class Notice CSS class. Default 'torro-notice torro-{$type}-notice'. * @param string $type Notice type. */ return apply_filters( "{$this->form_manager->get_prefix()}form_notice_class", "torro-notice torro-{$type}-notice", $type ); }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |