acf_admin_field_group::__construct()publicACF 5.0.0

__construct

This function will setup the class functionality

@type    function

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

Хуков нет.

Возвращает

null. Ничего.

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

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

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

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

Код acf_admin_field_group::__construct() ACF 5.10.2

function __construct() {

	// actions
	add_action( 'current_screen', array( $this, 'current_screen' ) );
	add_action( 'save_post', array( $this, 'save_post' ), 10, 2 );

	// ajax
	add_action( 'wp_ajax_acf/field_group/render_field_settings', array( $this, 'ajax_render_field_settings' ) );
	add_action( 'wp_ajax_acf/field_group/render_location_rule', array( $this, 'ajax_render_location_rule' ) );
	add_action( 'wp_ajax_acf/field_group/move_field', array( $this, 'ajax_move_field' ) );

	// filters
	add_filter( 'post_updated_messages', array( $this, 'post_updated_messages' ) );
	add_filter( 'use_block_editor_for_post_type', array( $this, 'use_block_editor_for_post_type' ), 10, 2 );
}