LLMS_Abstract_Notification_View::has_field_support( string $type, string $field )
Determine if the current view supports a field by ID
Parameters Parameters
- $type
-
(string) (Required) Notification type [email|basic].
- $field
-
(string) (Required) Field id.
Return Return
(bool)
Source Source
File: includes/abstracts/llms.abstract.notification.view.php
protected function has_field_support( $type, $field ) {
$fields = $this->get_supported_fields();
if ( ! isset( $fields[ $type ] ) ) {
return false;
}
$type_fields = $fields[ $type ];
if ( ! isset( $type_fields[ $field ] ) ) {
return false;
}
return $type_fields[ $field ];
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.8.0 | Introduced. |