LLMS_Metabox_Editor_Field

WP Editor metabox field


Description Description


Source Source

File: includes/admin/post-types/meta-boxes/fields/llms.class.meta.box.editor.php

class LLMS_Metabox_Editor_Field extends LLMS_Metabox_Field implements Meta_Box_Field_Interface {

	/**
	 * Array of editor arguments.
	 * @see _WP_Editors::parse_settings()
	 * @var array
	 * @since 3.11.0
	 */
	public $settings;

	/**
	 * Class constructor
	 * @param array $_field Array containing information about field
	 */
	function __construct( $_field ) {

		$this->field = $_field;
		$this->settings = isset( $this->field['settings'] ) ? $this->field['settings'] : array();

	}

	/**
	 * outputs the Html for the given field
	 * @return HTML
	 */
	public function output() {

		global $post;

		parent::output();

		wp_editor( $this->meta, $this->field['id'], $this->settings );

		parent::close_output();

	}
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.30.3 Introduced.


Top ↑

Methods Methods


Top ↑

User Contributed Notes User Contributed Notes

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