LLMS_Notifications::dispatch_processor_async( string $id )
Async callback to dispatch processors
Description Description
Locates the processor by ID and dispatches it for processing.
The trigger hook llms_dispatch_notification_processor_async is called by the action scheduler library.
See also See also
Parameters Parameters
- $id
-
(string) (Required) Processor ID.
Return Return
(array|WP_Error)
Source Source
File: includes/notifications/class.llms.notifications.php
public function dispatch_processor_async( $id ) {
$processor = $this->get_processor( $id );
if ( $processor ) {
return $processor->dispatch();
}
// Translators: %s = Processor ID.
return new WP_Error( 'invalid-processor', sprintf( __( 'The processor "%s" does not exist.', 'lifterlms' ), $id ) );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.38.0 | Introduced. |