LLMS_Abstract_Notification_View::has_field_support( string $type, string $field )
Determine if the current view supports a field by ID
Description Description
Parameters Parameters
- $type
-
(string) (Required) notification type [email|basic]
- $field
-
(string) (Required) field id
Return Return
(boolean)
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. |
User Contributed Notes User Contributed Notes
Permalink: