Twitter\WordPress\Shortcodes\Share::shortcodeUI PHP Method

shortcodeUI() public static method

Describe shortcode for Shortcake UI
Since: 1.1.0
public static shortcodeUI ( ) : void
return void
    public static function shortcodeUI()
    {
        // Shortcake required
        if (!function_exists('shortcode_ui_register_for_shortcode')) {
            return;
        }
        shortcode_ui_register_for_shortcode(static::SHORTCODE_TAG, array('label' => esc_html(__('Tweet Button', 'twitter')), 'listItemImage' => 'dashicons-twitter', 'attrs' => array(array('attr' => 'text', 'label' => esc_html(_x('Text', 'Share / Tweet text', 'twitter')), 'type' => 'text'), array('attr' => 'url', 'label' => 'URL', 'type' => 'url'), array('attr' => 'size', 'label' => esc_html(__('Button size:', 'twitter')), 'type' => 'radio', 'value' => '', 'options' => array('' => esc_html(_x('medium', 'medium size button', 'twitter')), 'large' => esc_html(_x('large', 'large size button', 'twitter')))))));
    }