LLMS_Events::is_event_valid( string $event )

Determine if the event string is registered and valid.


Parameters Parameters

$event

(string) (Required) Event string (${event_type}.${event_action}). EG: "account.signon".


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/class-llms-events.php

	protected function is_event_valid( $event ) {

		return array_key_exists( $event, $this->get_registered_events() );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.36.1 Use more performant array_key_exists( $key, $array_assoc ) in place of in_array( $key, array_keys( $array_assoc ), true ).
3.36.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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