You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using ACF Builder and I'm looking for an easy way to translate my Gutenberg blocks created with it. How can I configure this when creating blocks with acf builder?
At the moment it seems complex... Is there a solution to do what ACF allows when using its UI?
Exemple ... how said this block must be translate with WPML
`<?php
namespace App;
use StoutLogic\AcfBuilder\FieldsBuilder;
Hello,
I'm using ACF Builder and I'm looking for an easy way to translate my Gutenberg blocks created with it. How can I configure this when creating blocks with acf builder?
At the moment it seems complex... Is there a solution to do what ACF allows when using its UI?
Exemple ... how said this block must be translate with WPML
`<?php
namespace App;
use StoutLogic\AcfBuilder\FieldsBuilder;
$promoicon = ['green' => 'Green'];
$promoblocks = new FieldsBuilder('promoblocks');
$promoblocks
->setLocation('block', '==', 'acf/promoblocks');
$promoblocks
->addText('heading', [ 'label' => 'Heading', 'required' => 1])
->addText('sticktext', [ 'label' => 'Stick Text', 'required' => 0])
->addSelect('promoicon', ['label' => 'Promo Icon','required' => 0, 'choices' => $promoicon,
'default_value' => [], 'allow_null' => 1, 'multiple' => 0, 'return_format' => 'value']);
return $promoblocks; `
Thanks
The text was updated successfully, but these errors were encountered: