WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

ACF_Compatibility::__construct() public ACF 5.0.0

Sets up the class functionality.

{} Это метод класса: ACF_Compatibility{}

Хуков нет.

Возвращает

null.

Использование

$ACF_Compatibility = new ACF_Compatibility();
$ACF_Compatibility->__construct();
(void) (обязательный)

Список изменений

С версии 5.0.0 Введена.

Код ACF_Compatibility::__construct() ACF 5.9.1

<?php
function __construct() {
	
	// actions
	add_filter('acf/validate_field',						array($this, 'validate_field'), 20, 1);
	add_filter('acf/validate_field/type=textarea',			array($this, 'validate_textarea_field'), 20, 1);
	add_filter('acf/validate_field/type=relationship',		array($this, 'validate_relationship_field'), 20, 1);
	add_filter('acf/validate_field/type=post_object',		array($this, 'validate_relationship_field'), 20, 1);
	add_filter('acf/validate_field/type=page_link',			array($this, 'validate_relationship_field'), 20, 1);
	add_filter('acf/validate_field/type=image',				array($this, 'validate_image_field'), 20, 1);
	add_filter('acf/validate_field/type=file',				array($this, 'validate_image_field'), 20, 1);
	add_filter('acf/validate_field/type=wysiwyg',			array($this, 'validate_wysiwyg_field'), 20, 1);
	add_filter('acf/validate_field/type=date_picker',		array($this, 'validate_date_picker_field'), 20, 1);
	add_filter('acf/validate_field/type=taxonomy',			array($this, 'validate_taxonomy_field'), 20, 1);
	add_filter('acf/validate_field/type=date_time_picker',	array($this, 'validate_date_time_picker_field'), 20, 1);
	add_filter('acf/validate_field/type=user',				array($this, 'validate_user_field'), 20, 1);
	add_filter('acf/validate_field_group',					array($this, 'validate_field_group'), 20, 1);
	
	// Modify field wrapper attributes
	add_filter('acf/field_wrapper_attributes',				array($this, 'field_wrapper_attributes'), 20, 2);
	
	// location
	add_filter('acf/location/validate_rule/type=post_taxonomy', array($this, 'validate_post_taxonomy_location_rule'), 20, 1);
	add_filter('acf/location/validate_rule/type=post_category', array($this, 'validate_post_taxonomy_location_rule'), 20, 1);
	
	// Update settings
	add_action('acf/init', array($this, 'init'));
}