LLMS_Notifications::load_processor( string $type, string $path = null )
Load a single processor
Description Description
Parameters Parameters
- $type
-
(string) (Required) processor type id
- $path
-
(string) (Optional) path (for allowing 3rd party processor loading)
Default value: null
Return Return
(boolean)
Source Source
File: includes/notifications/class.llms.notifications.php
public function load_processor( $type, $path = null ) { // default path for core processors if ( ! $path ) { $path = $this->get_directory() . 'processors/class.llms.notification.processor.' . $type . '.php'; } if ( file_exists( $path ) ) { $this->processors[ $type ] = require_once $path; return true; } return false; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |