Compose ACF Fields, Blocks, Widgets, and Option Pages with ACF Builder on Sage 10.
MIT License
Bot releases are hidden (Show)
Published by Log1x 8 months ago
Full Changelog: https://github.com/Log1x/acf-composer/compare/v3.0.10...v3.0.11
Published by Log1x 8 months ago
example()
methodFull Changelog: https://github.com/Log1x/acf-composer/compare/v3.0.9...v3.0.10
Published by Log1x 8 months ago
attributes()
method for cleanly & safely setting block properties instead of using __construct
assets
with method_exists
to prevent unnecessary clashingalign_content
conditionalassets
method (Fixes #206)styles
property on stubsexample()
method in the block construct
stubassets()
replacement in acf:upgrade
getTemplate()
(#209)Full Changelog: https://github.com/Log1x/acf-composer/compare/v3.0.8...v3.0.9
Published by Log1x 8 months ago
Exception
namespace (Fixes #205) (#207)Full Changelog: https://github.com/Log1x/acf-composer/compare/v3.0.7...v3.0.8
Published by Log1x 8 months ago
acf:upgrade
acf:ide-helpers
command_ide-helpers.php
to the .gitignore
file$composer
in the Block construct stub (#202)Full Changelog: https://github.com/Log1x/acf-composer/compare/v3.0.6...v3.0.7
Published by Log1x 8 months ago
acf:ide-helpers
command to generate IDE helpers for configured custom field types (#201)Full Changelog: https://github.com/Log1x/acf-composer/compare/v3.0.5...v3.0.6
Published by Log1x 8 months ago
addPartial
on repeaters and groups (#200)Full Changelog: https://github.com/Log1x/acf-composer/compare/v3.0.4...v3.0.5
Published by Log1x 8 months ago
acf:upgrade
(#199)Published by Log1x 8 months ago
Builder
(Fixes #197)enqueue()
in place of assets($block)
enqueue()
with assets($block)
Full Changelog: https://github.com/Log1x/acf-composer/compare/v3.0.2...v3.0.3
Published by Log1x 8 months ago
enqueue()
's $block
when replacing with acf:upgrade
(#196)Published by Log1x 8 months ago
Published by Log1x 8 months ago
composer require log1x/acf-composer
to upgrade to ^3.0
.wp acorn acf:upgrade
.Going forward, it is recommended to use the new Builder
class:
- use StoutLogic\AcfBuilder\FieldsBuilder;
+ use Log1x\AcfComposer\Builder;
- $listItems = new FieldsBuilder('listItems');
+ $listItems = Builder::make('listItems');
When using the new Builder
class, you can now use ->addPartial()
to add field partials:
- $listItems->addFields($this->get(Partial::class));
+ $listItems->addPartial(Partial::class);
ACF Composer now includes field group caching. It may be a good idea to add this to your deployment script:
$ wp acorn acf:cache
You can view the status of the cache by running wp acorn acf:cache --status
or wp acorn about
.
Please open an issue if you experience any problems.
$block
data to enqueue()
(#154)acf:cache
command for caching built field groups (Fixes #176)FieldsBuilder
wrapper for improved builder support (Fixes #173)acf:upgrade
command to upgrade classes to v3acf:clear
command to clear the ACF Composer cache$settings
property to pass additional settings to acf_add_options_page()
(#156)acf/init
(#163)uses_context
and provides_context
(#153)laravel/pint
to the projectroots/acorn
to the projectsquizlabs/php_codesniffer
from the projecttypes
and manifest
configuration to the ACF Composer config$redirect
property default value to false
acf-composer
to make publishing assets easiersuggest
and scripts
configurationget()
Partial method--status
option to the acf:cache
commandBuilder
classacorn about
composer.lock
to .gitignore
Full Changelog: https://github.com/Log1x/acf-composer/compare/v2.1.0...v3.0.0
Published by Log1x about 2 years ago
$context
param to block render callback (Fixes #130)$wp_block
param to block render callback$block->context
property to access $context
$block->instance
property to access $wp_block
$post_id
property definitionfields()
docblock return type (#134)Published by Log1x about 2 years ago
$example
conditional to explicitly require false
to disable block preview (#126)Published by Log1x about 2 years ago
$this->example
is not null before setting it (#124)
acf_register_block_type
instead of acf_register_block
Published by Log1x about 2 years ago
This might fix random issues related to #109 – not sure.
$this->app->make
to bottom of boot methodPublished by Log1x about 2 years ago
Str::remove()
with str_replace()
for Acorn 1.x compatibilityPublished by Log1x over 2 years ago
Published by Log1x over 2 years ago
fields()
call (#112)Published by Log1x about 3 years ago