Created
November 10, 2014 17:08
-
-
Save davisshaver/e22955707e9f4f25da19 to your computer and use it in GitHub Desktop.
Registering a shortcode UI for pullquotes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'init', 'register_fusion_pullquote_ui' ); | |
function register_fusion_pullquote_ui() { | |
shortcode_ui_register_for_shortcode( | |
'fusion-pullquote', | |
array( | |
'label' => 'Pullquote', | |
'listItemImage' => 'dashicons-editor-quote', | |
'attrs' => array( | |
array( | |
'label' => 'Quote', | |
'attr' => 'content', | |
'type' => 'textarea', | |
), | |
array( | |
'label' => 'Source', | |
'attr' => 'source', | |
'type' => 'text', | |
), | |
), | |
) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment