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".
Return Return
(bool)
Source Source
File: includes/class-llms-events.php
protected function is_event_valid( $event ) { return array_key_exists( $event, $this->get_registered_events() ); }
Expand full source code Collapse full source code View on GitHub
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. |