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(); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.30.3 | Introduced. |
Methods Methods
- __construct — Class constructor
- output — outputs the Html for the given field