ACF_Compatibility::__construct()publicACF 5.0.0

__construct

Sets up the class functionality.

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

Хуков нет.

Возвращает

null. Ничего.

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

$ACF_Compatibility = new ACF_Compatibility();
$ACF_Compatibility->__construct();

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

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

Код ACF_Compatibility::__construct() ACF 5.10.2

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' ) );
}