ACF_Local_JSON::__construct()publicACF 5.9.0

Constructor.

Метод класса: ACF_Local_JSON{}

Хуков нет.

Возвращает

null. Ничего (null).

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

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

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

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

Код ACF_Local_JSON::__construct() ACF 6.0.4

public function __construct() {

	// Update settings.
	acf_update_setting( 'save_json', get_stylesheet_directory() . '/acf-json' );
	acf_append_setting( 'load_json', get_stylesheet_directory() . '/acf-json' );

	// Add listeners.
	add_action( 'acf/update_field_group', array( $this, 'update_field_group' ) );
	add_action( 'acf/untrash_field_group', array( $this, 'update_field_group' ) );
	add_action( 'acf/trash_field_group', array( $this, 'delete_field_group' ) );
	add_action( 'acf/delete_field_group', array( $this, 'delete_field_group' ) );

	// Include fields.
	add_action( 'acf/include_fields', array( $this, 'include_fields' ) );
}