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


Top ↑

Return Return

(boolean)


Top ↑

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 ];
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.8.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.





Permalink: