Skip to content

KITH Carbon Fields 3.6.11.34

Choose a tag to compare

@ArtemBulavin ArtemBulavin released this 15 Nov 14:43
  • Extend registered field definitions, including fields in nested complex groups, through PHP. Inserted fields inherit the anchor's tab or settings section and its access rules.
  • Create or update posts by a unique external ID with carbon_upsert_post(). Concurrent calls for the same ID use the same record.
  • Generate typed readers for PHPStan and IDEs with wp carbon-fields generate-types, including nested complex row types.
  • Add English and Russian examples for all three APIs.

303 tests passed and one was skipped. Fresh installation and the upgrade from 3.6.11.33 were verified on WordPress 5.8.1 and 7.1.4 with PHP 8.4.4. The upgrade preserved existing values and row IDs. Both environments returned a single record for four parallel upserts of the same external ID. PHPStan checked the generated reader and reported intentional typos in root and nested fields.

Русский

  • Объявления полей можно расширять через PHP, в том числе во вложенных группах комплекса. Добавленные поля наследуют вкладку или секцию и её правила доступа.
  • Функция carbon_upsert_post() создаёт и обновляет записи по уникальному внешнему ID. Параллельные вызовы для одного ID работают с одной записью.
  • Команда wp carbon-fields generate-types создаёт классы чтения для PHPStan и IDE с типами вложенных строк комплекса.
  • Для всех трёх API добавлены примеры на русском и английском.

Установочный архив для WordPress — kith-carbon-fields-3.6.11.34.zip.