Skip to content

Instantly share code, notes, and snippets.

@rickalee
Created December 3, 2015 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rickalee/13e570cb45174d1f68ed to your computer and use it in GitHub Desktop.
Save rickalee/13e570cb45174d1f68ed to your computer and use it in GitHub Desktop.
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