Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Shortcake UI Alignment
shortcode_ui_register_for_shortcode(
'wfcf_deal',
array(
'label' => 'Deal',
'listItemImage' => 'dashicons-awards',
'attrs' => array(
array(
'label' => 'Select Deal',
'attr' => 'deal',
'type' => 'post_select',
'query' => array( 'post_type' => 'wfcf_deal' ),
'multiple' => false,
),
array(
'label' => 'Aligment',
'attr' => 'align',
'type' => 'select',
'options' => array(
'none' => 'None',
'left' => 'Left',
'center' => 'Center',
'right' => 'Right',
),
),
),
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment