acf_field_wysiwyg::initialize()
__construct
This function will setup the field type data
Метод класса: acf_field_wysiwyg{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$acf_field_wysiwyg = new acf_field_wysiwyg(); $acf_field_wysiwyg->initialize();
Список изменений
С версии 5.0.0 | Введена. |
Код acf_field_wysiwyg::initialize() acf field wysiwyg::initialize 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' ) ); }