Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Registering a shortcode UI for pullquotes
<?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