Log1x / acf-composer

Compose ACF Fields, Blocks, Widgets, and Option Pages with ACF Builder on Sage 10.
https://github.com/Log1x/acf-composer
MIT License
400 stars 53 forks source link

Changing Default Style Title #168

Closed kupoback closed 1 year ago

kupoback commented 1 year ago

Is there a way to change the title of the Default Style in the admin?

I've already tried changing the label here, but it just seems to revert back to "Default". Haven't dug too deep into the Block Class to see if there's something defaulting back, or a setting I'm missing to pass through in the array.

public $styles = [
    [
        'name' => 'button-primary',
        'label' => 'Primary Button',
        'isDefault' => true,
    ],
    [
        'name' => 'button-secondary',
        'label' => 'Secondary Button',
    ]
];
kupoback commented 1 year ago

Looks like it's actually a limitation of WordPress, and don't think it can be doable.