LLMS_Processors::load_processor( string $name )

Load a single processor


Description Description


Parameters Parameters

$name

(string) (Required) name of the processor


Top ↑

Return Return

(obj|false) instance of the processor if found, otherwise false


Top ↑

Source Source

File: includes/processors/class.llms.processors.php

	public function load_processor( $name ) {

		$path = apply_filters( 'llms_load_processor_path', $name );

		if ( false === strpos( $path, '.php' ) ) {

			$file = str_replace( '_', '.', $path );
			$path = LLMS_PLUGIN_DIR . 'includes/processors/class.llms.processor.' . $file . '.php';

		}

		if ( file_exists( $path ) ) {
			return require_once $path;
		}

		return false;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.15.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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