acf_field_wysiwyg::initialize
__construct
This function will setup the field type data
Method of the class: acf_field_wysiwyg{}
No Hooks.
Returns
null. Nothing (null).
Usage
$acf_field_wysiwyg = new acf_field_wysiwyg(); $acf_field_wysiwyg->initialize();
Changelog
| Since 5.0.0 | Introduced. |
acf_field_wysiwyg::initialize() acf field wysiwyg::initialize code ACF 6.0.4
function initialize() {
// vars
$this->name = 'wysiwyg';
$this->label = __( 'Wysiwyg Editor', 'acf' );
$this->category = 'content';
$this->defaults = array(
'tabs' => 'all',
'toolbar' => 'full',
'media_upload' => 1,
'default_value' => '',
'delay' => 0,
);
// add acf_the_content filters
$this->add_filters();
// actions
add_action( 'acf/enqueue_uploader', array( $this, 'acf_enqueue_uploader' ) );
}