Predefined classes are aimed to be used for object stylization. This set of classes allows users to set or fully change the appearance of the object in WordPress Page Builder.
- Can be added or removed in the editor.
- Can be grouped in the editor.
- When you choose a class from the group it’s possible to setup whether the class will be added to an object or replaced with the already added class from this group.
Note: use ‘allowMultiple’ key to select each option.
$post_style = array(
'label' => 'Style',
'allowMultiple' => true,
'values' => array(
'custom-style-1' => array(
'class' => 'custom-class-1',
'label' => 'First Option'
'custom-style-2' => array(
'class' => 'custom-class-2',
'label' => 'Second Option'