LLMS_PlayNice::wp_optimizepress_live_editor()

OptimizePress LiveEditor fix.


Description Description

The live editor for OptimizePress does not work because it is trying to load a frontend environment in the admin area and needs access to LifterLMS frontend files.

This function loads all frontend files when the OptimizePress live editor is initialized.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.playnice.php

	public function wp_optimizepress_live_editor() {

		// These files are necessary to get optimizepress ajax to play nicely in the liveeditor.
		include_once 'class.llms.ajax.php';
		include_once 'class.llms.ajax.handler.php';

		// These files are all necessary to get the liveeditor to open.
		include_once 'llms.template.functions.php';
		include_once 'class.llms.https.php';

		include_once 'class.llms.template.loader.php';
		include_once 'class.llms.frontend.assets.php';
	}

Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Removed loading of class files that don't instantiate their class in favor of autoloading.
5.0.0 Remove inclusion of removed files: + forms/frontend/class.llms.frontend.forms.php + forms/frontend/class.llms.frontend.password.php
4.0.0 Removed inclusion of removed 'class.llms.person.php' file.
3.2.2
3.19.6 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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