Predefined classes

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.

Main features:

  • 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.



$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'

Note: use ‘allowMultiple’ key to select each option.

Related Topics

Leave a Reply

Your email address will not be published. Required fields are marked *