Created
November 5, 2014 19:51
-
-
Save davisshaver/4d9d5c3ddb70c076a987 to your computer and use it in GitHub Desktop.
How we register a UI for [fusion-content]
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_content_ui' ); | |
function register_fusion_content_ui() { | |
shortcode_ui_register_for_shortcode( | |
'fusion-content', | |
array( | |
'label' => 'Content', | |
'listItemImage' => 'dashicons-editor-interactive', | |
'attrs' => array( | |
array( | |
'label' => 'ID', | |
'attr' => 'id', | |
'type' => 'text', | |
), | |
), | |
) | |
); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment