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


Top ↑

Return Return

(boolean)


Top ↑

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

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.